You are not guaranteed that your server get notified when the client shut
down the socket. If your server does not send any more data on this socket I
think the socket will remain open on your server very very long.

If you don't plan to check that a socket cant be open more than a specified
time, it's much easier for you to shut down the socket on server side.
Anyway, if you use http 1.0, you must shut down socket after every request
you answer on server (if you don't use keep-alive). Keeping the socket open
is only for use with keep-alive, but if you server only will redirect to
another server, this has no reason. You an also shut down socket when using
http 1.1, but then you should include Connection: Close in http-header.

Regards Bjørnar

To unsubscribe or change your settings for TWSocket mailing list
please goto
Visit our website at

Reply via email to