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 jjlee
Recipients
Date 2007-01-03.23:54:26
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Confirmed.  The cause is the (ab)use of socket._fileobject by urllib2.AbstractHTTPHandler to provide .readline() and .readlines() methods.  _fileobject simply does not close the socket on _fileobject.close() (since in the original intended use of _fileobject, _socketobject "owns" the socket, and _fileobject only has a reference to it).  The bug was introduced with the upgrade to HTTP/1.1 in revision 36871.

The patch here fixes it:

http://python.org/sf/1627441
History
Date User Action Args
2007-08-23 14:50:13adminlinkissue1601399 messages
2007-08-23 14:50:13admincreate