From 23a27e57aa5ed5986548204e520c97561f7c2e6a Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Mon, 25 Apr 2016 19:34:50 -0400 Subject: [PATCH] examples/bench: Drop TCP_NODELAY setting --- examples/bench/server.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/bench/server.py b/examples/bench/server.py index ac3246c..0d69318 100644 --- a/examples/bench/server.py +++ b/examples/bench/server.py @@ -41,10 +41,8 @@ async def echo_client(loop, client): async def echo_client_streams(reader, writer): - sock = writer.get_extra_info('socket') - if hasattr(socket_module, 'TCP_NODELAY'): - sock.setsockopt(IPPROTO_TCP, TCP_NODELAY, 1) if PRINT: + sock = writer.get_extra_info('socket') print('Connection from', sock.getpeername()) while True: data = await reader.read(100000)