[New-bugs-announce] [issue10272] SSL handshake timeouts not caught by transient_internet
Antoine Pitrou
report at bugs.python.org
Sun Oct 31 22:43:53 CET 2010
New submission from Antoine Pitrou <pitrou at free.fr>:
The issue here is that ssl is using its own exception class rather than the socket module's "timeout" class:
test test_httplib failed -- Traceback (most recent call last):
File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86-2/build/Lib/test/test_httplib.py", line 408, in test_networked
h.request('GET', '/')
File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86-2/build/Lib/http/client.py", line 943, in request
self._send_request(method, url, body, headers)
File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86-2/build/Lib/http/client.py", line 981, in _send_request
self.endheaders(body)
File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86-2/build/Lib/http/client.py", line 939, in endheaders
self._send_output(message_body)
File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86-2/build/Lib/http/client.py", line 791, in _send_output
self.send(msg)
File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86-2/build/Lib/http/client.py", line 737, in send
self.connect()
File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86-2/build/Lib/http/client.py", line 1086, in connect
server_hostname=server_hostname)
File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86-2/build/Lib/ssl.py", line 168, in wrap_socket
_context=self)
File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86-2/build/Lib/ssl.py", line 254, in __init__
raise x
File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86-2/build/Lib/ssl.py", line 250, in __init__
self.do_handshake()
File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86-2/build/Lib/ssl.py", line 429, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: _ssl.c:374: The handshake operation timed out
----------
components: Tests
messages: 120090
nosy: pitrou
priority: low
severity: normal
status: open
title: SSL handshake timeouts not caught by transient_internet
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10272>
_______________________________________
More information about the New-bugs-announce
mailing list