urllib leaves sockets open?
Chris Tavares
cct at tavaresstudios.com
Sun Aug 21 18:42:37 EDT 2005
"Paul Rubin" <http://phr.cx@NOSPAM.invalid> wrote in message
news:7xek8nc0l2.fsf at ruckus.brouhaha.com...
> "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.
Thanks, I'll do some poking around in urllib first and see if I can narrow
it down.
Is there a way to do HTTP 1.1 with urllib? The docs say 0.9 and 1.0 only.
Thanks,
-Chris
More information about the Python-list
mailing list