Author thomas.belhalfaoui
Recipients martin.panter, terry.reedy, thomas.belhalfaoui
Date 2015-09-06.15:31:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Martin, I went through your patch and made some simple tests, and I have a couple of questions.

1) When I run the following code, I get a "Bad file descriptor" :

conn = httplib.HTTPConnection("", 31280)
conn.set_tunnel("", 80)
conn.request("GET", "/")
resp = conn.getresponse()

So I tweaked the "getresponse" function so that it does not call "self.close()" (i.e. the connection stays open after the CONNECT request) in that case, and it seems to works fine.

2) I added "self.sock, _ = tunnel" in HTTPConnection constructor, to try your use case, but I get "http.client.RemoteDisconnected: Remote end closed connection without response".

Do you think it makes sense or am I missing something ?
Date User Action Args
2015-09-06 15:31:52thomas.belhalfaouisetrecipients: + thomas.belhalfaoui, terry.reedy, martin.panter
2015-09-06 15:31:52thomas.belhalfaouisetmessageid: <>
2015-09-06 15:31:52thomas.belhalfaouilinkissue24964 messages
2015-09-06 15:31:51thomas.belhalfaouicreate