classification
Title: Support for HTTP 1.1 persistent connections throughout the standard library
Type: enhancement Stage: needs patch
Components: Library (Lib) Versions: Python 3.3
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: orsenthil Nosy List: amaury.forgeotdarc, ipatrol, orsenthil, pitrou
Priority: normal Keywords:

Created on 2010-09-02 11:56 by ipatrol, last changed 2011-03-20 13:44 by eric.araujo.

Messages (5)
msg115365 - (view) Author: (ipatrol) Date: 2010-09-02 11:56
HTTP 1.1 introduced persistent connections nearly six years ago. Yet this resource saving and speed improving option is not available in the standard library. Can this be added?
msg115367 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2010-09-02 12:08
It seems that httplib is exactly what you need:
http://docs.python.org/library/httplib.html#examples
msg115368 - (view) Author: (ipatrol) Date: 2010-09-02 12:18
No, httplib actually creates a second connection with the same object. Neither is their support in urllib, urllib2, nor in any of the HTTP servers. This would be really useful for a bot connected to an API.
msg115369 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-09-02 12:24
Do you think you could provide a patch?
msg116641 - (view) Author: (ipatrol) Date: 2010-09-16 23:48
Possibly, but I don't really have expertise in the underbelly of the HTTP system.
History
Date User Action Args
2011-03-20 13:44:07eric.araujosetnosy: amaury.forgeotdarc, orsenthil, pitrou, ipatrol
versions: + Python 3.3, - Python 3.2
2011-03-19 22:32:51orsenthilsetassignee: orsenthil
nosy: amaury.forgeotdarc, orsenthil, pitrou, ipatrol
2010-09-16 23:48:10ipatrolsetmessages: + msg116641
2010-09-02 21:13:25eric.araujosetversions: - Python 3.1, Python 2.7
2010-09-02 12:24:21pitrousetversions: - Python 3.3
nosy: + orsenthil, pitrou

messages: + msg115369

stage: needs patch
2010-09-02 12:18:07ipatrolsetstatus: pending -> open
resolution: works for me ->
messages: + msg115368
2010-09-02 12:08:52amaury.forgeotdarcsetstatus: open -> pending

nosy: + amaury.forgeotdarc
messages: + msg115367

resolution: works for me
2010-09-02 11:56:50ipatrolcreate