Use registered io on Windows when possible (#905)

This commit is contained in:
Nate Brown
2023-07-10 12:43:48 -05:00
committed by GitHub
parent 8ba5d64dbc
commit a3e59a38ef
13 changed files with 472 additions and 8 deletions

View File

@@ -8,9 +8,14 @@ import (
"net"
"syscall"
"github.com/sirupsen/logrus"
"golang.org/x/sys/unix"
)
func NewListener(l *logrus.Logger, ip net.IP, port int, multi bool, batch int) (Conn, error) {
return NewGenericListener(l, ip, port, multi, batch)
}
func NewListenConfig(multi bool) net.ListenConfig {
return net.ListenConfig{
Control: func(network, address string, c syscall.RawConn) error {