Changeset 1550
- Timestamp:
- 12/21/06 15:01:28
- Files:
-
- trunk/cherrypy/test/test_conn.py (modified) (1 diff)
- trunk/cherrypy/wsgiserver.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/test/test_conn.py
r1548 r1550 185 185 self.assertBody("Hello, world!") 186 186 187 if self.scheme == "https":188 # Adjust the timeout up to cover the higher timeouts of SSL189 # (the wsgiserver ssl_timeout default is 3 seconds)190 tout = 4191 else:192 tout = timeout * 2193 194 187 # Wait for our socket timeout 195 time.sleep(t out)188 time.sleep(timeout * 2) 196 189 197 190 # Make another request on the same socket, which should error trunk/cherrypy/wsgiserver.py
r1549 r1550 546 546 547 547 if SSL and isinstance(sock, SSL.ConnectionType): 548 timeout = sock.gettimeout() 548 549 self.rfile = SSL_fileobject(sock, "r", self.rbufsize) 550 self.rfile.ssl_timeout = timeout 549 551 self.wfile = SSL_fileobject(sock, "w", self.wbufsize) 552 self.wfile.ssl_timeout = timeout 550 553 self.environ["wsgi.url_scheme"] = "https" 551 554 self.environ["HTTPS"] = "on"

