ioLibrary_Driver
ioLibrary_Driver copied to clipboard
Update socket.c
Use "disconnect()" instead of "close()" during CLOSE_WAIT, so as to reply FIN flag after receiving a FIN flag. Otherwise no FIN will be sent and the peer gets stuck in FIN_WAIT_2.