Test:
git.sprovoost.nl/bitcoin/commit/97e3c9562291f5bbc2b03fef1c70e4975eb2a8c6net: only use the select error set while connecting · Bitcoin Core (unofficial mirror)@97e3c956Windows uses the select() error set to report a failed non-blocking connect(). Make ErrorEvent an event that can be requested from Sock::Wait(), like RecvEvent and SendEvent: with select() it adds…