From 45c07bec4dbd900c2a4ed1f832e90dcd3211d3d5 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 24 Aug 2012 21:22:43 +0900 Subject: [PATCH] python: set TCP_NODELAY option --- python/spdylay.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/spdylay.pyx b/python/spdylay.pyx index 7b138456..07b2f0dc 100644 --- a/python/spdylay.pyx +++ b/python/spdylay.pyx @@ -1279,6 +1279,8 @@ try: self._response_headers, data_prd) def handle(self): + self.request.setsockopt(socket.IPPROTO_TCP, + socket.TCP_NODELAY, True) # TODO We need to call handshake manually because 3.3.0b2 # crashes if do_handshake_on_connect=True sock = self.server.ctx.wrap_socket(self.request, server_side=True,