Message201875
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. |
|
Date |
User |
Action |
Args |
2013-11-01 03:39:36 | martin.panter | set | recipients:
+ martin.panter, amaury.forgeotdarc, orsenthil, pitrou, ipatrol |
2013-11-01 03:39:36 | martin.panter | set | messageid: <1383277176.35.0.321914568568.issue9740@psf.upfronthosting.co.za> |
2013-11-01 03:39:36 | martin.panter | link | issue9740 messages |
2013-11-01 03:39:35 | martin.panter | create | |
|