Sometimes my asyncio transports return None
instead of IP address and port:
address, port = transport.get_extra_info('peername')
'peername'
: the remote address to which the socket is connected, result ofsocket.socket.getpeername()
(None
on error)
However, nothing is said about the reasons causing the error. Should I try again? Should I close this connection immediately?