The Wayback Machine - https://web.archive.org/web/20220507121246/https://github.com/hyperium/hyper/pull/2567
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

server: implement set_sleep_on_errors() for generic Accept implementations #2567

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Copy link

@vavrusa vavrusa commented Jun 2, 2021

This adds AcceptWithSleep struct which implements Accept trait and adds a functionality to sleep on errors similar to the AddrIncoming for TcpListener. The reason for this is that this feature is missing for UnixSocket listeners,
and other custom listeners implementing Accept, but it's not really specific to TcpListener. I'm not sure if/how you would prefer to have this implemented, so opening this PR to get the ball rolling.

…tions

This adds AcceptWithSleep struct which implements Accept trait and adds a
functionality to sleep on errors similar to the AddrIncoming for TcpListener.
The reason for this is that this feature is missing for UnixSocket listeners,
and other custom listeners implementing Accept.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant