urllib leaves sockets open?

Paul Rubin http
Sun Aug 21 07:37:13 CEST 2005


"Chris Tavares" <cct at tavaresstudios.com> writes:
> Is this normal behavior for urllib? Is there a way to force that initial
> socket closed earlier? Is there something else I need to do?

I'd say open a sourceforge bug.  There may be a way around it with the
fancy opener methods of urllib2, but it's a bug if regular urllib
opens a second socket without closing the first one.  For http 1.1
it should be able to use just one socket anyway.



More information about the Python-list mailing list