diff options
author | Valery Piashchynski <[email protected]> | 2021-10-31 18:18:17 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-10-31 18:18:17 +0300 |
commit | c3a32497244f645dc70fa1f54e8000399576f66a (patch) | |
tree | 4b4ed046352b325cf76991a2dc676d4529192e98 /utils | |
parent | b78558d0af7f813f81de0338400f99291932347f (diff) |
set TCP_DEFER_ACCEPT to false, because first operation might not be read
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/network.go | 2 |
1 files changed, 1 insertions, 1 deletions
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, } |