May 2019
Intermediate to advanced
478 pages
11h 21m
English
There are three basic ways a TCP connection can fail. They are as follows:
A network outage prevents data from reaching your peer. In this case, TCP tries to retransmit data. If connectivity is re-established, TCP simply picks back up where it left off. Otherwise, the connection eventually times out. This timeout can be on the order of 10 minutes.
The second way a TCP connection can fail is if the connected peer application crashes. In this case, the peer's operating system sends a FIN message. This case is indistinguishable from the peer calling close() on their end. If your application continues to send data after having received the ...
Read now
Unlock full access