Lakin Wecker  committed e5c9a0e

Fixing a buglet in TCP_NODELAY setsockopt call.

  • Participants
  • Parent commits 6686960
  • Branches default

Comments (0)

Files changed (1)

File cherrypy/wsgiserver/

         self.socket = socket.socket(family, type, proto)
         self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
         if self.nodelay:
-            self.socket.setsockopt(socket.SOL_SOCKET, socket.TCP_NODELAY, 1)
+            self.socket.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
         if self.ssl_certificate and self.ssl_private_key:
             if SSL is None:
                 raise ImportError("You must install pyOpenSSL to use HTTPS.")