Closed linw1995 closed 5 years ago
https://github.com/linw1995/lightsocks-python/blob/44dbbc9c3820969580709eedef0cd30050c89cdb/lightsocks/server.py#L139-L145
socket.create_connection contains the blocking method socket.getaddrinfo.
socket.create_connection
socket.getaddrinfo
should use coroutine AbstractEventLoop.getaddrinfo(host, port, *, family=0, type=0, proto=0, flags=0) first, and then create new connection
coroutine AbstractEventLoop.getaddrinfo(host, port, *, family=0, type=0, proto=0, flags=0)
https://github.com/linw1995/lightsocks-python/blob/44dbbc9c3820969580709eedef0cd30050c89cdb/lightsocks/server.py#L139-L145
socket.create_connection
contains the blocking methodsocket.getaddrinfo
.should use
coroutine AbstractEventLoop.getaddrinfo(host, port, *, family=0, type=0, proto=0, flags=0)
first, and then create new connection