Message250085
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. |
|
Date |
User |
Action |
Args |
2015-09-07 07:12:40 | martin.panter | set | recipients:
+ martin.panter, terry.reedy, thomas.belhalfaoui |
2015-09-07 07:12:40 | martin.panter | set | messageid: <1441609960.77.0.283577358003.issue24964@psf.upfronthosting.co.za> |
2015-09-07 07:12:40 | martin.panter | link | issue24964 messages |
2015-09-07 07:12:40 | martin.panter | create | |
|