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

Changeset 1974

Show
Ignore:
Timestamp:
06/04/08 00:11:33
Author:
fumanchu
Message:

Buried a couple socket, threading module imports for easier Google App Engine integration.

Files:

Legend:

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

    r1933 r1974  
    11"""Manage HTTP servers with CherryPy.""" 
    22 
    3 import socket 
    43import warnings 
    54 
     
    101100            # Look up the host name, which should be the 
    102101            # safest thing to spit out in a URL. 
     102            import socket 
    103103            host = socket.gethostname() 
    104104         
  • trunk/cherrypy/process/servers.py

    r1953 r1974  
    11"""Adapt an HTTP server.""" 
    22 
    3 import socket 
    4 import threading 
    53import time 
    64 
     
    5553            wait_for_free_port(*self.bind_addr) 
    5654         
     55        import threading 
    5756        t = threading.Thread(target=self._start_http_thread) 
    5857        t.setName("HTTPServer " + t.getName()) 
     
    171170    port = int(port) 
    172171     
     172    import socket 
     173     
    173174    # AF_INET or AF_INET6 socket 
    174175    # Get the correct address family for our host (allows IPv6 addresses) 

Hosted by WebFaction

Log in as guest/cpguest to create tickets