Getaddrinfo call may freeze on Windows systems

Hi Juce team !

I hope you are all doing well.

I’ve observed that the Berkeley socket getaddrinfo system call may freeze on Windows systems, whether or not I use StreamingSocket::connect with a custom timeOutMillisecs.
Note that I’m using a remoteHostName with a human-readable computer name instead of an IP address.
Also, my environment is a heterogeneous network of Windows 10 and Windows 11 computers.

To fix this, I used the overlapped results implementation of the GetAddrInfoExW call.
Here are the attached diffs patch:

juce_socket_diff_patch.txt (6.0 KB)

Thanks for your concern about this.
Hope this helps!

Warm regards,