Skip to content

Test with Axum Server & Tungstenite Client hanging #5263

Answered by Noah-Kennedy
ipsi asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like you are using std::net::TcpListener, in which case it makes perfect sense that your application would hang, as this listener and streams obtained from it are blocking. You need to use the versions in tokio::net instead, and tokio_tungstenite.

Also, could you include imports in the future? It's easier to figure out issues like this when you do.

Replies: 1 comment 5 replies

Comment options

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

@Noah-Kennedy
Comment options

@ipsi
Comment options

@ipsi
Comment options

@Noah-Kennedy
Comment options

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