-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Default sleep_on_errors
to false
#1712
Comments
Although the implementer notes an error log entry would be emitted, he/she does not indicate how to control and view this error log. E.g., what env. var. should be set and for which path? |
I invite @klausi (issue reporter and main implementer) and @aep (discussion contributor) to this discussion. |
Sleeping on TCP accept errors is actually common in other libraries, like nginx, nodejs, Netty... Was it masking an actual problem in your server? |
@seanmonstar Perhaps yes. Could you please point me to the code and the rationale for this behavior in nginx or Netty? nginx isn’t a library AFAIK so the error handling strategy would be different. |
The behavior in https://docs.rs/hyper/0.12.14/hyper/server/conn/struct.AddrIncoming.html#method.set_sleep_on_errors (PR #1450) is speculative. It shouldn’t default to
true
, since it masks error conditions and does not appreciably reduce the risk of service unavailability, as intended (#1358).I suggest to default this parameter to
false
or, better yet, remove this code.The text was updated successfully, but these errors were encountered: