examples/bench: Drop TCP_NODELAY setting

This commit is contained in:
Yury Selivanov 2016-04-25 19:34:50 -04:00
parent 814b153e22
commit 23a27e57aa
1 changed files with 1 additions and 3 deletions

View File

@ -41,10 +41,8 @@ async def echo_client(loop, client):
async def echo_client_streams(reader, writer): 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: if PRINT:
sock = writer.get_extra_info('socket')
print('Connection from', sock.getpeername()) print('Connection from', sock.getpeername())
while True: while True:
data = await reader.read(100000) data = await reader.read(100000)