We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e04957d commit 463baf4Copy full SHA for 463baf4
tornado/test/httpserver_test.py
@@ -113,7 +113,12 @@ def test_sslv2_fail(self):
113
# we've got all the other ssl version tests here.
114
# Clients should have SSLv2 disabled by default.
115
try:
116
- response = self.fetch('/')
+ # The server simply closes the connection when it gets
117
+ # an SSLv2 ClientHello packet.
118
+ # request_timeout is needed here because on some platforms
119
+ # (cygwin, but not native windows python), the close is not
120
+ # detected promptly.
121
+ response = self.fetch('/', request_timeout=1)
122
except ssl.SSLError:
123
# In some python/ssl builds the PROTOCOL_SSLv2 constant
124
# exists but SSLv2 support is still compiled out, which
0 commit comments