summaryrefslogtreecommitdiff
path: root/utils/network_windows.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_windows.go
parent2b12bc942f9eeb0b75325cc69a296076535f391a (diff)
Fix windows network package
Diffstat (limited to 'utils/network_windows.go')
-rwxr-xr-xutils/network_windows.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/utils/network_windows.go b/utils/network_windows.go
index a07ac351..6eefb8f7 100755
--- a/utils/network_windows.go
+++ b/utils/network_windows.go
@@ -8,8 +8,6 @@ import (
"os"
"strings"
"syscall"
-
- "github.com/valyala/tcplisten"
)
// CreateListener crates socket listener based on DSN definition.
@@ -47,13 +45,7 @@ func CreateListener(address string) (net.Listener, error) {
}
func createTCPListener(addr string) (net.Listener, error) {
- cfg := tcplisten.Config{
- ReusePort: true,
- DeferAccept: true,
- FastOpen: true,
- Backlog: 0,
- }
- listener, err := cfg.NewListener("tcp4", addr)
+ listener, err := net.Listen("tcp", addr)
if err != nil {
return nil, err
}