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

Changeset 1124

Show
Ignore:
Timestamp:
06/06/06 16:32:18
Author:
fumanchu
Message:

Removed duplicate wait_for_occupied_port logic.

Files:

Legend:

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

    r1092 r1124  
    7272            host = cherrypy.config.get('server.socket_host') 
    7373            port = cherrypy.config.get('server.socket_port') 
    74             if not host: 
    75                 host = 'localhost' 
    76              
    77             for trial in xrange(50): 
    78                 if self.interrupt: 
    79                     break 
    80                 try: 
    81                     check_port(host, port) 
    82                 except IOError: 
    83                     break 
    84                 else: 
    85                     time.sleep(.1) 
    86             else: 
    87                 cherrypy.log("Port %s not bound on %s" % 
    88                              (repr(port), repr(host)), 'HTTP') 
    89                 raise cherrypy.NotReady("Port not bound.") 
     74            wait_for_occupied_port(host, port) 
    9075     
    9176    def stop(self): 

Hosted by WebFaction

Log in as guest/cpguest to create tickets