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

Fix regression in Socket::shutdown() when having _noShutdown set #10298

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

sgothel
Copy link

@sgothel sgothel commented Oct 23, 2024

Change-Id: I57d46e0428905137e05d34dad450fea1d6a0f127

Summary

Regression injected with commit 0579ee8 of PR #9916

Original behavior was to do nothing in Socket::shutdown(), while the commit in question did setClosed() leading to an eventual socket close within SocketPoll::poll().

The latter causes an error within system ::ppoll().

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

@sgothel sgothel added the 24.04 label Oct 23, 2024
@sgothel sgothel requested a review from caolanm October 23, 2024 05:56
@sgothel sgothel self-assigned this Oct 23, 2024
Copy link
Contributor

@caolanm caolanm left a comment

Choose a reason for hiding this comment

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

These _noShutdown cases are from the bgsave stuff introduced with 0a9a454

@sgothel
Copy link
Author

sgothel commented Oct 23, 2024

These _noShutdown cases are from the bgsave stuff introduced with 0a9a454

Thank you, saw usage at the paired sockets but was unsure about semantics.

Regression injected with commit 0579ee8
of PR #9916

Original behavior was to do nothing in Socket::shutdown(),
while the commit in question did setClosed() leading
to an eventual socket close within SocketPoll::poll().

The latter causes an error within system ::ppoll().

Signed-off-by: Sven Göthel <[email protected]>
Change-Id: I57d46e0428905137e05d34dad450fea1d6a0f127
@caolanm caolanm force-pushed the private/sgothel/regression_socket_shutdown branch from 1aab56e to e5d86f7 Compare October 23, 2024 10:27
@caolanm caolanm merged commit 049c205 into master Oct 23, 2024
13 checks passed
@caolanm caolanm deleted the private/sgothel/regression_socket_shutdown branch October 23, 2024 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Handle limited open Connections due to keepalive connections (cool#9621)
2 participants