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.

classification
Title: httplib.connect broken in 2.1 branch
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: jhylton Nosy List: doko, jhylton, nowonder
Priority: high Keywords:

Created on 2002-08-25 07:39 by doko, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (5)
msg12160 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2002-08-25 07:39
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 
msg12161 - (view) Author: Peter Schneider-Kamp (nowonder) * (Python triager) Date: 2002-08-27 15:47
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.
msg12162 - (view) Author: Jeremy Hylton (jhylton) (Python triager) Date: 2002-08-27 22:43
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.
msg12163 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2002-08-28 04:48
Logged In: YES 
user_id=60903

IMO a maintainance branch should be in a releasable state
anytime. This one is a regression, so I raised the priority.
msg12164 - (view) Author: Jeremy Hylton (jhylton) (Python triager) Date: 2002-08-29 20:12
Logged In: YES 
user_id=31392

Fixed in rev. 1.34.2.6 of httplib.py
History
Date User Action Args
2022-04-10 16:05:37adminsetgithub: 37086
2002-08-25 07:39:49dokocreate