-
Notifications
You must be signed in to change notification settings - Fork 149
Don't return shutdown errors during shutdown #64
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
base: master
Are you sure you want to change the base?
Conversation
jyn514
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this something we can test somehow? When did you run into this error?
In production with real-world websites. |
85c2e8a to
439a549
Compare
boring/src/ssl/mod.rs
Outdated
| if let Some(stack) = e.ssl_error() { | ||
| if let Some(first) = stack.errors.first() { | ||
| if first.code() as i32 == boring_sys::SSL_R_PROTOCOL_IS_SHUTDOWN { | ||
| return Poll::Ready(Ok(ShutdownResult::Received)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not exactly sure what this means. This is why I didn't put it in the boring crate at first.
b46582e to
1d3fb25
Compare
|
I've rebased it and added a safe API for ERR_peek_last_error |
No description provided.