Bill Janssen added the comment:
No, the close must be removed. It's the wrong *way* to "transfer
responsibility". Close means "close", not "I wash my hands of
responsibility here". What's hidden here is that the open socket is
transferred to the response, which continues to use it. In fact, the
close() should happen when the caller is finished with the response,
probably as effect of the GC of the "response" object.
On Nov 25, 2007 3:09 AM, vila <[EMAIL PROTECTED]> wrote:
> vila added the comment:
> The title of this bug is scary.
> httplib rightly close the socket because that's the way to transfer the
> responsibility of the close to the user of the HttpResponse object.
> The close MUST stays there.
> I do encounter a bug related to that close while trying to use the ssl
> module in python2.6.
> I'm willing to help fixing it but *this* bug may not be the right place
> to do so (even if related).
> I'm a bit lost on how to help right now since the involved changes seems
> to occur in both python3.0 and python2.6 and I'm currently targeting 2.4
> and 2.5.
> nosy: +vila
> Tracker <[EMAIL PROTECTED]>
Tracker <[EMAIL PROTECTED]>
Python-bugs-list mailing list