On Sun, Sep 30, 2018 at 02:35:24PM +0300, Ciprian Dorin Craciun wrote: > One question about this: if the client gradually reads from the > (server side) buffer, but it doesn't completely clears it, having this > `TCP_USER_TIMEOUT` configured would consider this connection "live"?
yes, that's it. > More specifically, say there is 4MB in the server buffer and the > client "consumes" (i.e. acknowledges) only small parts of it, would > the timeout apply as: > (A) until the entire buffer is cleared, or > (B) until at least "some" amount of data is read; The timeout is an inactivity period. So let's say you set 10s in tcp-ut, it would only kill the connection if the client acks nothing in 10s, even if it takes 3 minutes to dump the whole buffer. It's mostly used in environments with very long connections where clients may disappear without warning, such as websocket connections or webmails. Willy

