https://gitlab.synchro.net/main/sbbs/-/commit/2773f92cddcec6b459d6a17b
Modified Files:
src/xpdev/sockwrap.c
Log Message:
nonblocking_connect() must return non-zero upon failure to connect
on Windows, after the call to the socket_writable() timed out (failed)
calling getsockopt(... SO_ERROR ...) was setting the result to 0, indicating a successful connection.
So if getsockopt() reports the socket errno value is 0, don't use that value for the result, default to ETIMEDOUT (60) instead.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net