Changeset 1974
- Timestamp:
- 06/04/08 00:11:33
- Files:
-
- trunk/cherrypy/_cpserver.py (modified) (2 diffs)
- trunk/cherrypy/process/servers.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cpserver.py
r1933 r1974 1 1 """Manage HTTP servers with CherryPy.""" 2 2 3 import socket4 3 import warnings 5 4 … … 101 100 # Look up the host name, which should be the 102 101 # safest thing to spit out in a URL. 102 import socket 103 103 host = socket.gethostname() 104 104 trunk/cherrypy/process/servers.py
r1953 r1974 1 1 """Adapt an HTTP server.""" 2 2 3 import socket4 import threading5 3 import time 6 4 … … 55 53 wait_for_free_port(*self.bind_addr) 56 54 55 import threading 57 56 t = threading.Thread(target=self._start_http_thread) 58 57 t.setName("HTTPServer " + t.getName()) … … 171 170 port = int(port) 172 171 172 import socket 173 173 174 # AF_INET or AF_INET6 socket 174 175 # Get the correct address family for our host (allows IPv6 addresses)

