Commits

Robert Brewer  committed a0d9e3c

Fix for #942 (WSGIServer tries to set TCP options on UNIX socket).

  • Participants
  • Parent commits 19d7854

Comments (0)

Files changed (1)

File cherrypy/wsgiserver/__init__.py

         self.socket = socket.socket(family, type, proto)
         prevent_socket_inheritance(self.socket)
         self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
-        if self.nodelay:
+        if self.nodelay and not isinstance(self.bind_addr, str):
             self.socket.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
         
         if self.ssl_adapter is not None: