Skip to content
Discussion options

You must be logged in to vote

First, you should be using asynctelnet instead of the vanilla telnet module to avoid blocking.

To ensure your telnet I/O is serialized among multiple callers, you should use asyncio.Lock(), or one of the other async synchronization primitives. See #340 for an example.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dy-nz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants