Skip to content
Discussion options

You must be logged in to vote

Sorry, misread the MWE. The likely fix is to chain your once(Ok(stream)) with futures::stream::pending() so the accept loop never observes end-of-stream. The server task then only exits when you drop it. Glad to hear pending() worked for you.

Replies: 1 comment 3 replies

Comment options

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

@MukundaKatta
Comment options

Answer selected by RaitoBezarius
@RaitoBezarius
Comment options

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