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

Changeset 1477

Show
Ignore:
Timestamp:
12/08/06 11:29:49
Author:
fumanchu
Message:

Probable fix for #606 (Problem timing out the persitent connection when SSL is enabled). The SSL wrapped methods did not have a timeout.

Files:

Legend:

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

    r1476 r1477  
    390390    def ssl_method_wrapper(self, *args, **kwargs): 
    391391##        print (id(self), method, args, kwargs) 
     392        start = time.time() 
    392393        while True: 
    393394            try: 
     
    412413                else: 
    413414                    raise 
    414 ##        raise socket.timeout() 
     415            if time.time() - start > self.ssl_timeout: 
     416                raise socket.timeout("timed out") 
    415417    return ssl_method_wrapper 
    416418 

Hosted by WebFaction

Log in as guest/cpguest to create tickets