I understand that the keep-alive
message aims to prevent the underlying TCP connection from closing so that multiple requests can be sent over the same TCP connection.
However it is unclear how this affects a request that has timed out:
- If multiple requests are handled over the same TCP connection, when the client times-out, how will ASP.NET know? I'm not sure how to ask this question correctly, but I suspect that
HttpWorkerRequest.IsClientConnected
is false if the underlying TCP connection is closed? How would I determine if the client has timed out? Surely the response can no longer be sent? - Since the client can send
keep-alive
messages, what effect, if any does it have on the request? I expect that it will have no effect and mechanisms such as a timeout will work as usual.
Thank you for your time and assistance.