• Kenton Varda's avatar
    Fix multiple problems with connect() on non-glibc-Linux: · bd05ffe8
    Kenton Varda authored
    1. Correctly set nonblocking flag *before* calling connect(). (On glibc-Linux, we create the socket already in nonblocking mode, so this was never an issue.)
    2. FDs could be leaked if connect fails. (This applies to glibc-Linux too, although connect() would have to fail immediately without blocking, which is unusual.)
    bd05ffe8
async-io-unix.c++ 52.5 KB