Answer the question
In order to leave comments, you need to log in
How to handle client socket connection in asyncio?
Good afternoon. In all manuals, the connection is made through open_connection, but in case of problems with the connection, an error falls. What are socket.connect_ex counterparts from the standard library that return codes?
async def test(message):
reader, writer = await asyncio.open_connection(
'127.0.0.1', 8888)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question