Jeremy Hylton <[email protected]> added the comment: On Sun, Feb 21, 2010 at 5:38 PM, Robert Buchholz <[email protected]> wrote: > > Robert Buchholz <[email protected]> added the comment: > > almost... HTTPConnection is calling close() on the socket object, but > HTTPResponse still has an open file-like object from a previous makefile() > call. That object still has an internal reference to the socket.
That's right. The makefile() method on sockets works that way, and the HTTP library depends on that behavior (and pretty much always has). Jeremy > > ---------- > > _______________________________________ > Python tracker <[email protected]> > <http://bugs.python.org/issue7806> > _______________________________________ > ---------- _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue7806> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
