Jason R. Coombs  committed 41d134f Merge

Merge test and fix

  • Participants
  • Parent commits 8122b1d, 7e87ed8
  • Branches cherrypy-3.2.x

Comments (0)

Files changed (1)

File cherrypy/process/

 import sys
 import time
+import warnings
 class ServerAdapter(object):
             check_port(host, port, timeout=timeout)
         except IOError:
+            # port is occupied
-    raise IOError("Port %r not bound on %r" % (port, host))
+    if host == client_host(host):
+        raise IOError("Port %r not bound on %r" % (port, host))
+    # On systems where a loopback interface is not available and the
+    #  server is bound to all interfaces, it's difficult to determine
+    #  whether the server is in fact occupying the port. In this case,
+    #  just issue a warning and move on. See issue #1100.
+    msg = "Unable to verify that the server is bound on %r" % port
+    warnings.warn(msg)