Relation between TCP/IP Keep Alive and HTTP Keep Alive timeout values
Posted
by Suresh Kumar
on Stack Overflow
See other posts from Stack Overflow
or by Suresh Kumar
Published on 2010-04-29T08:44:33Z
Indexed on
2010/04/29
8:47 UTC
Read the original article
Hit count: 588
I am trying to understand the relation between TCP/IP and HTTP timeout values. Are these two timeout values different or same? Most Web servers allow users to set the HTTP Keep Alive timeout value through some configuration. How is this value used by the Web servers? is this value just set on the underlying TCP/IP socket i.e is the HTTP Keep Alive timeout and TCP/IP Keep Alive Timeout same? or are they treated differently?
My understanding is (maybe incorrect): The Web server uses the default timeout on the underlying TCP socket (i.e. indefinite) and creates Worker thread that counts down the specified HTTP timeout interval. When the Worker thread hits zero, it closes the connection.
© Stack Overflow or respective owner