-
Notifications
You must be signed in to change notification settings - Fork 837
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
Properly handling the shutdown when multiple ones go on EAGAIN back to back #7881
Conversation
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.
Please add unit testing.
src/internal.c
Outdated
* We check if we are trying to send a | ||
* CLOSE_NOTIFY alert | ||
* */ | ||
if (type == 0) { |
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.
No magic values please.
if (type == 0) { | ||
if (!ssl->options.sentNotify) { | ||
ssl->options.sentNotify = 1; | ||
} else { |
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.
formatting:
}
else {
retest this please |
- added unit test; - formatting;
12fe37b
to
577cce6
Compare
retest this please |
retest this please |
Description
Inhibit queueing redundant CLOSE_NOTIFY messages.
Fixes 7784
Testing
./testsuite/testsuite.test
Checklist