New answers tagged


In real world, there are timeouts on both modern transport layer and applications. Nothing is retried indefinitely these days.


Accroding to rfc793 TCP FIN occupies one byte in sequence number space and the FIN is considered to occur after the last actual data octet in a segment in which it occurs


TCP connection is closed after certain number of unsuccessfull retransmissions. I think this number is 5. This however only happens if there is actually a packets (segment) to be sent and retransmitted. If there are no outgoing segments, and keepalives are not used, then the socket is opened forever.

Top 50 recent answers are included