Z
Z
ZurgInq2016-01-29 14:40:01
Network administration
ZurgInq, 2016-01-29 14:40:01

How can the server know that the client has terminated TCP connections?

On one of the projects working over TCP, it was noticed that sometimes there are hanging connections from clients.
If the client closes the connection without notifying the server, what mechanisms are there at the TCP or OS level for the server to know that the client has left?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
none7, 2016-01-29
@ZurgInq

If the FIN packet did not arrive, then only timeouts.

J
jcmvbkbc, 2016-01-30
@jcmvbkbc

keep-alive + timeout. Without traffic, a broken connection can hang forever.

S
svsanek, 2016-01-29
@svsanek

Timeout only.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question