TCP/IP Connection Errors
what will happen when the server crash?
client
repeat transmission 12 times, 9 min totally.
waiting for ACK.
error ETIMEOUT.
if the server restarted
client receive RST.
error ECONNREST
if the server shutdown. kill the process
client receive a FIN from the server, then send an ACK.
status CLOSE_WAIT
Server status FIN_WAIT
*warning: as the application does not know the status, if client write message.
then client receive RST.*