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 martin.panter
Recipients martin.panter, terry.reedy, thomas.belhalfaoui
Date 2015-09-07.07:12:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441609960.77.0.283577358003.issue24964@psf.upfronthosting.co.za>
In-reply-to
Content
1) The real problem is when _tunnel() internally calls getresponse(), it notices the connection cannot be reused for another request, and closes the socket object. Perhaps I should rethink my logic; maybe move sock and detach() to HTTPResponse.

2) With some rough experimentation, passing tunnel through the HTTPConnection (plain text HTTP) constructor seems to work for me. However if you meant HTTPSConnection (over TLS) instead, you will probably need to manually do the wrap_socket() step. Maybe that’s why your connection is being dropped.
History
Date User Action Args
2015-09-07 07:12:40martin.pantersetrecipients: + martin.panter, terry.reedy, thomas.belhalfaoui
2015-09-07 07:12:40martin.pantersetmessageid: <1441609960.77.0.283577358003.issue24964@psf.upfronthosting.co.za>
2015-09-07 07:12:40martin.panterlinkissue24964 messages
2015-09-07 07:12:40martin.pantercreate