summaryrefslogtreecommitdiff
path: root/utils/network_windows.go
diff options
context:
space:
mode:
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
}