[ee122] Persistant Connections
ofer at berkeley.edu
Wed Oct 31 14:10:36 PDT 2007
If you have a connection to a server which you send a request and request a
persistent connection but the server refuses. In its response it includes a
Content-Length header. As the client I parse this and receive content-length
data. However, Once I have received the data I continue on with no more
calls to read. However, the server now closes the connection and the client
has no idea of this event. The client then makes a request to the same
server and noticing that that is where it last connected it doesn't
establish a new connection. The following recv call fails.
How do I fix this? Is there a way to check whether or not a server has
closed the connection without receiving data?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ee122