Closed JoelLinn closed 2 weeks ago
Happening for me as well - happy to add more info if that helps. Works with workarounds listed above
Okay, the hang is fixed.
Note that examples/resolve-hostnames.c's logic for checking the address status is incorrect without an infinite timeout, which is why it reported NULL address strings before this bug was fixed with the above patch; it shouldn't get a status of zero with an infinite wait.
Thanks for fixing! Also, much appreciation for the level of documentation throughout the project
SDL_net 78dc78694f17317b08ec788d4812e74850b4acff SDL d95f5bad2459608816cbf24f14dcab618a4a9ab7 prerelease-3.1.2
Hi,
when setting a timeout,
SDLNet_WaitUntilResolved
has broken behaviour. This can be reproduced using one of the examples:Issues:
INFO: 8.8.8.8: (null)
but the return code indicates success (except when addingSDL_Delay(1000);
before the call toSDLNet_WaitUntilResolved
, indicating a race)