[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-06-22 Thread Andrew Trick

Andrew Trick andrew.tr...@gmail.com added the comment:

With this patch, I continued to get the following error 
SSL23_GET_SERVER_HELLO
Until my coworker finally found a fix posted by Philippe Biondi:
+++ b/mercurial/keepalive.py
@@ -237,6 +237,8 @@
  else:
  # no (working) free connections were found.  Create a
new one.
  h = http_class(host)
+if hasattr(req,_tunnel_host) and req._tunnel_host:
+h.set_tunnel(req._tunnel_host)
  if DEBUG: DEBUG.info(creating new connection to %s (%d),
   host, id(h))
  self._cm.add(host, h, 0)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1424152
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-06-22 Thread Andrew Trick

Andrew Trick andrew.tr...@gmail.com added the comment:

I should have pointed out that my secondary problem was a mercurial
dependency on the urllib patch. I just wanted Mercurial users to get a
complete fix. I figure they will be looking for a fix in the python bug
report, and need to be told the fix won't work for them.

On Mon, Jun 22, 2009 at 5:11 PM, Senthil rep...@bugs.python.org wrote:


 Senthil orsent...@gmail.com added the comment:

 AndrewTrick: I am assuming your last comment is more relevant to
 mercurial's use of the set_tunnel, the facility provided by the patch,
 that is solving the issue for you. You had earlier pointed out
 mercurial's dependency upon this issue too.

 The fix as such stands good and may not require any change. Is my
 understanding OK?

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue1424152
 ___


--
Added file: http://bugs.python.org/file14339/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1424152
___I should have pointed out that my secondary problem was a mercurial dependency 
on the urllib patch. I just wanted Mercurial users to get a complete fix. I 
figure they will be looking for a fix in the python bug report, and need to be 
told the fix won#39;t work for them.br
brdiv class=gmail_quoteOn Mon, Jun 22, 2009 at 5:11 PM, Senthil span 
dir=ltrlt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span 
wrote:brblockquote class=gmail_quote style=border-left: 1px solid 
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;
br
Senthil lt;a href=mailto:orsent...@gmail.com;orsent...@gmail.com/agt; 
added the comment:br
br
AndrewTrick: I am assuming your last comment is more relevant tobr
mercurial#39;s use of the set_tunnel, the facility provided by the patch,br
that is solving the issue for you. You had earlier pointed outbr
mercurial#39;s dependency upon this issue too.br
br
The fix as such stands good and may not require any change. Is mybr
understanding OK?br
divdiv/divdiv class=h5br
--br
br
___br
Python tracker lt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br
lt;a href=http://bugs.python.org/issue1424152; 
target=_blankhttp://bugs.python.org/issue1424152/agt;br
___br
/div/div/blockquote/divbr
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2008-08-14 Thread Andrew Trick

Andrew Trick [EMAIL PROTECTED] added the comment:

Mercurial will not work for anyone in a large company without this
fix. I appreciate the patch, but hope its released soon. I did try the
patch with Mercurial, but now I'm getting different error. I'm not
sure if its related to the same bug:

abort: error: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol

--
nosy: +AndrewTrick

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1424152
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com