Antoine Pitrou added the comment:

I can reproduce under Debian testing, but not Debian stable nor Mageia 1.

I think this is really a bug in recent Debian/Ubuntu wget. By instrumenting 
SocketServer, I see that less requests are received than expected (e.g. ~350 
instead of 400). It seems wget is trying to send further requests on the same 
client socket, even though the server responded with a HTTP/1.0 status line and 
without a "connection: keep-alive" header, indicating it doesn't want 
keep-alive. Even explicitly sending a "connection: close" header doesn't seem 
to change wget's behaviour.

If you pass "--no-keep-alive" to wget, though, it solves the issue.

Running Wireshark would probably help confirm this.

----------
nosy: +neologix, pitrou

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15991>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to