Skip to content

When testing, tcp connect error occurs. #2756

Answered by olix0r
AkifumiSato asked this question in Q&A
Discussion options

You must be logged in to vote

This is probably a race. In the first version, the client connection can occur before the spawned tasks actually binds the server. In the second example, you've bound the server before spawning the server task.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@seanmonstar
Comment options

@AkifumiSato
Comment options

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

This discussion was converted from issue #2753 on February 10, 2022 16:25.