[Webkit-unassigned] [Bug 52872] new-run-webkit-tests fails to start HTTP server if there are proxy settings

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 21 02:51:38 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=52872





--- Comment #4 from Xianzhu Wang <wangxianzhu at google.com>  2011-01-21 02:51:37 PST ---
(In reply to comment #3)
> How does one set a proxy so as to trigger this?

I reproduce the issue on an Ubuntu Lucid with the following proxy settings:
 * Manual proxy configuration
 * Use the same proxy for all protocols
 * HTTP proxy: some valid proxy server
 * Ignored Host list:
      localhost
      127.0.0.1/8
      *.local

$ python (before this, should start a web server serving https on 8443 port) 
>>> import urllib
>>> urllib.urlopen('https://127.0.0.1:8443/')
Traceback (most recent call last):
  File "/usr/lib/python2.6/urllib.py", line 86, in urlopen
    return opener.open(url)
  File "/usr/lib/python2.6/urllib.py", line 205, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.6/urllib.py", line 439, in open_https
    h.endheaders()
  File "/usr/lib/python2.6/httplib.py", line 904, in endheaders
    self._send_output()
  File "/usr/lib/python2.6/httplib.py", line 776, in _send_output
    self.send(msg)
  File "/usr/lib/python2.6/httplib.py", line 735, in send
    self.connect()
  File "/usr/lib/python2.6/httplib.py", line 1112, in connect
    self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
  File "/usr/lib/python2.6/ssl.py", line 350, in wrap_socket
    suppress_ragged_eofs=suppress_ragged_eofs)
  File "/usr/lib/python2.6/ssl.py", line 118, in __init__
    self.do_handshake()
  File "/usr/lib/python2.6/ssl.py", line 293, in do_handshake
    self._sslobj.do_handshake()
IOError: [Errno socket error] [Errno 1] _ssl.c:480: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

>>> urllib.urlopen('https://127.0.0.1:8443/', proxies={})
<addinfourl at 19614032 whose fp = <socket._fileobject object at 0x129f550>>
>>> 

This seems a bug of python or some underlying library. Unsetting http_proxy, https_proxy, all_proxy environment variables doesn't help. I searched the error message and knew that many people encountered this and disabling proxy can resolve.

> 
> Can we unit test this?

I've no idea. Is it necessary?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list