summaryrefslogtreecommitdiff
path: root/utils/network.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-23 20:08:44 +0300
committerValery Piashchynski <[email protected]>2021-01-23 20:08:44 +0300
commit2be3d45300e3e8b437953f180fa8c54a0331e6cd (patch)
tree153415728b707b7d10298e01e04192a63e7c7733 /utils/network.go
parent2b12bc942f9eeb0b75325cc69a296076535f391a (diff)
Fix windows network package
Diffstat (limited to 'utils/network.go')
-rwxr-xr-xutils/network.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/network.go b/utils/network.go
index c9db0e68..e57854a8 100755
--- a/utils/network.go
+++ b/utils/network.go
@@ -12,6 +12,14 @@ import (
"github.com/valyala/tcplisten"
)
+// - SO_REUSEPORT. This option allows linear scaling server performance
+// on multi-CPU servers.
+// See https://www.nginx.com/blog/socket-sharding-nginx-release-1-9-1/ for details.
+//
+// - TCP_DEFER_ACCEPT. This option expects the server reads from the accepted
+// connection before writing to them.
+//
+// - TCP_FASTOPEN. See https://lwn.net/Articles/508865/ for details.
// CreateListener crates socket listener based on DSN definition.
func CreateListener(address string) (net.Listener, error) {
dsn := strings.Split(address, "://")