summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-10-31 08:55:08 -0700
committerGitHub <[email protected]>2021-10-31 08:55:08 -0700
commit89fdb4509214dece1523d3ff4d6a7a8b9236443d (patch)
tree4b4ed046352b325cf76991a2dc676d4529192e98 /utils
parentb78558d0af7f813f81de0338400f99291932347f (diff)
parentc3a32497244f645dc70fa1f54e8000399576f66a (diff)
[#842]: upd(listener): set `TCP_DEFER_ACCEPT` to false
[#842]: upd(listener): set `TCP_DEFER_ACCEPT` to false
Diffstat (limited to 'utils')
-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,
}