Proxying HTTP - end of message?
mnot at pobox.com
Sun Jun 20 08:47:44 CEST 1999
Are you using Connection: close and friends? Your browser may be setting up
a persistant connection...
----- Original Message -----
From: Andrew Cooke <andrew at andrewcooke.free-online.co.uk>
To: <python-list at cwi.nl>
Sent: Sunday, June 20, 1999 3:34
Subject: Proxying HTTP - end of message?
> I'm writing a small http proxy (I know a million already exist -
> my program isn't important, understanding the bug is). I have a
> couple of threads, spinning away, one copying from client to server
> and one from server to client. When there is no more data to read
> from the server the blocking read returns None and I close both
> sockets (one socket is proxy-client, the other proxy-server).
> But my browser continues to wait. If I press "stop" I have all the
> page, but the browser thinks the download has been interrupted.
> What am I missing? It appears as though the browser isn't detecting
> that the connection has been closed - why not?
> For what it's worth, this is on NT, I'm extending SocketServer, and
> using 1.5.2. But I suspect this is a problem with my logic rather
> than any piece of software....
> Any sugegstions appreciated (I can post/forward code - it's my own
> work, not my employer's).
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
More information about the Python-list