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

Properly handling the shutdown when multiple ones go on EAGAIN back to back #7881

Merged
merged 6 commits into from
Aug 24, 2024

Conversation

gasbytes
Copy link
Contributor

@gasbytes gasbytes commented Aug 16, 2024

Description

Inhibit queueing redundant CLOSE_NOTIFY messages.

Fixes 7784

Testing

./testsuite/testsuite.test

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

Copy link
Member

@julek-wolfssl julek-wolfssl left a 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) {
Copy link
Member

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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formatting:

}
else {

@gasbytes
Copy link
Contributor Author

retest this please

@douzzer
Copy link
Contributor

douzzer commented Aug 23, 2024

retest this please

@gasbytes
Copy link
Contributor Author

retest this please

@gasbytes gasbytes marked this pull request as ready for review August 23, 2024 20:30
@douzzer douzzer assigned douzzer and wolfSSL-Bot and unassigned gasbytes Aug 24, 2024
@douzzer douzzer dismissed stale reviews from SparkiDev and julek-wolfssl August 24, 2024 04:45

addressed

@douzzer douzzer merged commit bcbb544 into wolfSSL:master Aug 24, 2024
127 checks passed
@gasbytes gasbytes deleted the eagain-proper-shutdown branch August 28, 2024 13:06
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.

[Bug]: blocked wolfSSL_shutdown() keeps adding data
5 participants