Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1548

Show
Ignore:
Timestamp:
12/21/06 14:43:58
Author:
fumanchu
Message:

Partial fix for #625 (SSL: Writing to timed out socket didn't fail as it should have). This fixes test_conn by simply using a larger timeout. But Demo.stream is still broken.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/test/test_conn.py

    r1474 r1548  
    185185            self.assertBody("Hello, world!") 
    186186             
     187            if self.scheme == "https": 
     188                # Adjust the timeout up to cover the higher timeouts of SSL 
     189                # (the wsgiserver ssl_timeout default is 3 seconds) 
     190                tout = 4 
     191            else: 
     192                tout = timeout * 2 
     193             
    187194            # Wait for our socket timeout 
    188             time.sleep(timeout * 2
     195            time.sleep(tout
    189196             
    190197            # Make another request on the same socket, which should error 

Hosted by WebFaction

Log in as guest/cpguest to create tickets