Commits

Robert Brewer  committed 12ec1a4

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

  • Participants
  • Parent commits 7f4c6b7
  • Branches cherrypy-3.1.x

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_certificate and self.ssl_private_key:
             if SSL is None: