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)