[Python-bugs-list] [ python-Bugs-599838 ] httplib.connect broken in 2.1 branch
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 27 Aug 2002 15:43:29 -0700
Bugs item #599838, was opened at 2002-08-25 07:39
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=599838&group_id=5470
Category: Python Library
Group: Python 2.1.2
Status: Open
Resolution: None
Priority: 7
Submitted By: Matthias Klose (doko)
Assigned to: Jeremy Hylton (jhylton)
Summary: httplib.connect broken in 2.1 branch
Initial Comment:
In the current 2.1 branch, httplib.connect uses
socket.getaddrinfo, which is not available in 2.1:
>>> urllib.connect()
File "/usr/lib/python2.1/httplib.py", line 509, in
connect
for res in socket.getaddrinfo(self.host, self.port, 0,
AttributeError: 'socket' module has no attribute
'getaddrinfo'
Introduced in Revison 1.42.10.7 , Fri Jul 12 14:23:38
2002 UTC (6 weeks, 1 day ago) by jhylton
----------------------------------------------------------------------
>Comment By: Jeremy Hylton (jhylton)
Date: 2002-08-27 22:43
Message:
Logged In: YES
user_id=31392
I'll check into it, but why priority 7? If there aren't
plans to do a 2.1.4 release soon, then I would call this a
low priority.
----------------------------------------------------------------------
Comment By: Peter Schneider-Kamp (nowonder)
Date: 2002-08-27 15:47
Message:
Logged In: YES
user_id=14463
This bug is a consequence of the backport changes from
1.34.2.4 to 1.34.2.5 of dist/src/Lib/httplib.py.
Possible resolutions:
a) backport ipv6 updates of dist/src/Modules/socketmodule.c
(happened around revision 1.153) to release21-maint
XOR
b) undo part of the backport of dist/src/Lib/httplib.py,
especially
HTTPConnection.connect()
Assigning this to Jeremy as he checked in the backport changes.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=599838&group_id=5470