This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients amaury.forgeotdarc, ipatrol, martin.panter, orsenthil, pitrou
Date 2013-11-01.03:39:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1383277176.35.0.321914568568.issue9740@psf.upfronthosting.co.za>
In-reply-to
Content
I wrote a basic “urllib.request” handler class that I have been using for HTTP persistent connections. It is called PersistentConnectionHandler; see

https://github.com/vadmium/python-iview/blob/80dc1b4/iview/hds.py#L442

I am happy for this to be used as the basis for a patch for Python, or elsewhere.

It manages a single connection. You pass an instance to urllib.request.build_opener(), and then it connects to whatever host is specified when open() is called. Any old connection is closed when you ask for a URL on a new host.
History
Date User Action Args
2013-11-01 03:39:36martin.pantersetrecipients: + martin.panter, amaury.forgeotdarc, orsenthil, pitrou, ipatrol
2013-11-01 03:39:36martin.pantersetmessageid: <1383277176.35.0.321914568568.issue9740@psf.upfronthosting.co.za>
2013-11-01 03:39:36martin.panterlinkissue9740 messages
2013-11-01 03:39:35martin.pantercreate