mirror of https://github.com/MagicStack/uvloop.git
examples/bench: Drop TCP_NODELAY setting
This commit is contained in:
parent
814b153e22
commit
23a27e57aa
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue