This commit is contained in:
Alexander Bersenev
2018-07-08 23:52:57 +05:00
parent 647b6f6edd
commit 520a26aa89

View File

@@ -604,7 +604,7 @@ async def open_connection_tryer(addr, port, limit, timeout, max_attempts=3):
# the last attempt # the last attempt
task = asyncio.open_connection(addr, port, limit=limit) task = asyncio.open_connection(addr, port, limit=limit)
reader_tgt, writer_tgt = await asyncio.wait_for(task, timeout=timeout) reader_tgt, writer_tgt = await asyncio.wait_for(task, timeout=timeout)
return reader_tgt, writer_tgts return reader_tgt, writer_tgt
async def do_direct_handshake(proto_tag, dc_idx, dec_key_and_iv=None): async def do_direct_handshake(proto_tag, dc_idx, dec_key_and_iv=None):