You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm setting up a simple client/server program on my local machine and noticed that it worked instantly with a timeout of -1, but it'd wait for whatever value I set in timeout otherwise. Here's a barebones example:
// works right away
int connStatus = SDLNet_WaitUntilConnected(clientSocket, -1);
// works after 30s
int connStatus = SDLNet_WaitUntilConnected(clientSocket, 30000);
// works after 2s
int connStatus = SDLNet_WaitUntilConnected(clientSocket, 2000);
Also, if the server is down, all of the above work as expected (instantly). Just the success case hangs.
Workarounds:
Use -1 for timeout
Use SDLNet_GetConnectionStatus
Let me know if you need any more info - sample code, the computer I'm on, etc.
The text was updated successfully, but these errors were encountered:
Version:
SDL_net edcf67d
SDL - libsdl-org/SDL@7d21a49
Hi,
I'm setting up a simple client/server program on my local machine and noticed that it worked instantly with a timeout of
-1
, but it'd wait for whatever value I set in timeout otherwise. Here's a barebones example:Also, if the server is down, all of the above work as expected (instantly). Just the success case hangs.
Workarounds:
-1
for timeoutSDLNet_GetConnectionStatus
Let me know if you need any more info - sample code, the computer I'm on, etc.
The text was updated successfully, but these errors were encountered: