We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 392fe1b commit 7f78199Copy full SHA for 7f78199
internal/socket/socket.go
@@ -156,18 +156,14 @@ func connectEx(
156
bytesSent *uint32,
157
overlapped *windows.Overlapped,
158
) (err error) {
159
- // todo: after upgrading to 1.18, switch from syscall.Syscall9 to syscall.SyscallN
160
- r1, _, e1 := syscall.Syscall9(connectExFunc.addr,
161
- 7,
+ r1, _, e1 := syscall.SyscallN(connectExFunc.addr,
162
uintptr(s),
163
uintptr(name),
164
uintptr(namelen),
165
uintptr(unsafe.Pointer(sendBuf)),
166
uintptr(sendDataLen),
167
uintptr(unsafe.Pointer(bytesSent)),
168
- uintptr(unsafe.Pointer(overlapped)),
169
- 0,
170
- 0)
+ uintptr(unsafe.Pointer(overlapped)))
171
if r1 == 0 {
172
if e1 != 0 {
173
err = error(e1)
0 commit comments