[ee122] Persistant Connections

Ofer Sadgat 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...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/ee122/attachments/20071031/a08d06a9/attachment.html 

More information about the ee122 mailing list