From: Ben Darnell Date: Sun, 5 May 2013 13:55:37 +0000 (-0400) Subject: Clear the NODELAY flag in set_nodelay(False). X-Git-Tag: v3.1.0~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56e56f2adffc816b10c8b2b1c4fe0bb938ff7410;p=thirdparty%2Ftornado.git Clear the NODELAY flag in set_nodelay(False). --- diff --git a/tornado/iostream.py b/tornado/iostream.py index 064193dee..7a5c380da 100644 --- a/tornado/iostream.py +++ b/tornado/iostream.py @@ -743,7 +743,7 @@ class IOStream(BaseIOStream): if (self.socket is not None and self.socket.family in (socket.AF_INET, socket.AF_INET6)): self.socket.setsockopt(socket.IPPROTO_TCP, - socket.TCP_NODELAY, 1) + socket.TCP_NODELAY, 1 if value else 0) class SSLIOStream(IOStream):