Commit 517fff0
Fix incorrect control buffer length when filling
Somehow, this bug causes problems with listen sockets on Windows 11
platform.
After some number of client connections being abruptly terminated
(e.g. client has crashed), the host just stops to invoke connection
state change callbacks for the still opened listen socket.
In this particular case, `WSARecvMsg` always returns -1 (SOCKET_ERROR)
and `WSAGetLastError()` returns 10014 (WSAEFAULT), which indicates
there's a problem with function arguments.
So, it seems, that in some cases Windows will try to use the control
data, but if there's been some problem with it, the connection will
just remain in the broken state forever.
Signed-off-by: Pavel Solodovnikov <[email protected]>WSAMSG for WSARecvMsg
1 parent b744f1b commit 517fff0
File tree
1 file changed
+1
-1
lines changed- src/steamnetworkingsockets/clientlib
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2373 | 2373 | | |
2374 | 2374 | | |
2375 | 2375 | | |
2376 | | - | |
| 2376 | + | |
2377 | 2377 | | |
2378 | 2378 | | |
2379 | 2379 | | |
| |||
0 commit comments