Quellcode durchsuchen

Fix: system proxy should handle connection in parallel

kr328 vor 4 Jahren
Ursprung
Commit
62fb089e27
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      core/src/main/golang/proxy/http.go

+ 2 - 2
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)
 		}
 	}()