On AIX the new socket [sd] seems to inherit the O_NONBLOCK
flag from the listening socket [fd] (at the very least, it is getting set to O_NONBLOCK somewhere). The _read_io_header() function still assumes that the socket is in blocking mode, so this fix explicitly sets the socket to blocking mode.
Please register or sign in to comment