1. cherrypy
  2. CherryPy


Robert Brewer  committed a0d9e3c

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

  • Participants
  • Parent commits 19d7854
  • Branches default

Comments (0)

Files changed (1)

File cherrypy/wsgiserver/__init__.py

View file
         self.socket = socket.socket(family, type, proto)
         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: