• Max Kellermann's avatar
    system/EventPipe: fix WSAEINPROGRESS on Windows · b177bffa
    Max Kellermann authored
    Apparently, connecting a socket to a loopback address can block on
    Windows, and a non-blocking socket will return WSAEINPROGRESS.  This
    broken PoorSocketPair() in commit 2119e4fd, which made the socket
    non-blocking right from the start.  This fix postpones the
    ioctlsocket(FIONBIO) call until after the connect().
    
    Closes #134
    b177bffa
EventPipe.cxx 3.05 KB