Skip to content

LocalSet pool to handle multiple tcp connection concurrently #4660

Answered by Darksonn
yongman asked this question in Q&A
Discussion options

You must be logged in to vote

You should use tokio::task::spawn_local inside your loop whenever you receive a new connection.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@yongman
Comment options

@Darksonn
Comment options

@yongman
Comment options

@Darksonn
Comment options

@yongman
Comment options

Answer selected by yongman
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