summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-10-31 18:18:17 +0300
committerValery Piashchynski <[email protected]>2021-10-31 18:18:17 +0300
commitc3a32497244f645dc70fa1f54e8000399576f66a (patch)
tree4b4ed046352b325cf76991a2dc676d4529192e98
parentb78558d0af7f813f81de0338400f99291932347f (diff)
set TCP_DEFER_ACCEPT to false, because first operation might not be read
Signed-off-by: Valery Piashchynski <[email protected]>
-rwxr-xr-xutils/network.go2
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,
}