netcode: Windows: Connecting to server is delayed if some previous clients do not shutdown by the right way
Hi,
I run the example (client.c & server.c) and found an issue about the cleanup of previous client sessions.
I modified client.c by commenting the line number 97: signal( SIGINT, interrupt_handler) to make client cannot cleanup,
After that, I built both client & server on Windows, then run the server.
I opened another console to execute client. I repeated opening client and pressing ctrl + C to terminate it.
After 3 - 4 times of doing like that, the client connected to server after a bit delayed.
It seems that recvfrom in (netcode.c:836) emits a lot of WASECONNRESET
About this issue
- Original URL
- State: closed
- Created 6 months ago
- Comments: 25 (25 by maintainers)
Thanks for your advice. I have checked the test case and the issue has gone.
Following this logic, I think I know what it is:
The WSACONNRESET is stopping packets from being received, and it’s windows specific… should be able to fix, then you can verify.
I’m going to extend the logs, and try to repro over here
I confirm that this issue still happens.