Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(examples): Fix autoreload example (#798) #818

Merged
merged 1 commit into from
Nov 1, 2021

Conversation

cezarmathe
Copy link
Contributor

@cezarmathe cezarmathe commented Oct 28, 2021

Motivation

Fix #798.

Solution

Set the std TCP listener to nonblocking mode. Tokio makes no assumptions towards TCP listeners from std before converting them to tokio::net::TcpListener, so setting nonblocking mode on must be done manually.

Fixed std TCP listener used in the autoreload example that did not set
itself to use nonblocking mode.
@LucioFranco LucioFranco merged commit 8508f36 into hyperium:master Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

autoreload example can render the shutdown future useless
2 participants