From c3a32497244f645dc70fa1f54e8000399576f66a Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Sun, 31 Oct 2021 18:18:17 +0300 Subject: set TCP_DEFER_ACCEPT to false, because first operation might not be read Signed-off-by: Valery Piashchynski --- utils/network.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/network.go b/utils/network.go index 5b451b3c..1961c618 100755 --- a/utils/network.go +++ b/utils/network.go @@ -64,7 +64,7 @@ func CreateListener(address string) (net.Listener, error) { func createTCPListener(addr string) (net.Listener, error) { cfg := tcplisten.Config{ ReusePort: true, - DeferAccept: true, + DeferAccept: false, FastOpen: true, } -- cgit v1.2.3