From 62fb089e270c65f7716b2e2d9ac95e228a175383 Mon Sep 17 00:00:00 2001 From: kr328 Date: Sun, 13 Jun 2021 18:21:51 +0800 Subject: [PATCH] Fix: system proxy should handle connection in parallel --- core/src/main/golang/proxy/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/golang/proxy/http.go b/core/src/main/golang/proxy/http.go index 280d5e95..3eef3f74 100644 --- a/core/src/main/golang/proxy/http.go +++ b/core/src/main/golang/proxy/http.go @@ -13,7 +13,7 @@ import ( ) const ( - LocalHttpTimeout = time.Millisecond * 100 + LocalHttpTimeout = time.Minute * 5 ) var listener *httpListener @@ -55,7 +55,7 @@ func Start(listen string) (listenAt string, err error) { _ = conn.(*net.TCPConn).SetKeepAlive(false) - h.handleConn(conn) + go h.handleConn(conn) } }()