limit buffer usage

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
This commit is contained in:
2017-06-18 21:01:01 +03:00
parent 1413d28267
commit c8905c0ea9
4 changed files with 10 additions and 14 deletions

View File

@@ -4,11 +4,17 @@ import (
"context"
"log"
"net"
"net/http"
_ "net/http/pprof"
vnc "github.com/vtolstov/go-vnc"
)
func main() {
go func() {
log.Println(http.ListenAndServe(":6060", nil))
}()
ln, err := net.Listen("tcp", ":5900")
if err != nil {
log.Fatalf("Error listen. %v", err)