-
let me excuse my poor Eng Skills. i tried the socket network. but it's so inefficient. however i found the select.select instead.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello, this seems to be a misunderstanding of what the If you'd like to connect to a socket in an async enviroment you should use |
Beta Was this translation helpful? Give feedback.
Hello, this seems to be a misunderstanding of what the
socket.setblocking
method on a socket does.You can view the documentation of the effects of non-blocking mode in the Python documentation here.
If you'd like to connect to a socket in an async enviroment you should use
Loop.create_connection
instead, you can get the active loop usingasyncio.get_running_loop()
.