Issue1544

classification
Title: urllib2.urlopen() does not close connection on 404 response.
Type: behaviour Severity: major
Components: Library Versions: 2.5.1
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: geraldth
Priority: Keywords:

Created on 2010-01-19.13:49:52 by geraldth, last changed 2010-01-19.13:49:52 by geraldth.

Messages
msg5443 (view) Author: Gerald Thaler (geraldth) Date: 2010-01-19.13:49:50
urllib2.urlopen(url) raises an exception on URLs that return HTTP 40x (or 50x) but fails to close the underlying connection. Because the call does not return normally, there is no way for the caller to close the connection himself.

This is a major problem in webspider-applications, as ultimately the system will run out of file descriptors.
History
Date User Action Args
2010-01-19 13:49:52geraldthcreate