Skip to content
Discussion options

You must be logged in to vote

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 using asyncio.get_running_loop().

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@shechren
Comment options

@LostLuma
Comment options

@shechren
Comment options

Answer selected by shechren
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants