Skip to content

fix socket channel set exit events - #40924

Merged
Feng Wang (chemwolf6922) merged 2 commits into
masterfrom
user/chemwolf6922/fix-socket-channel-set-exit-events
Jun 30, 2026
Merged

Feng Wang (chemwolf6922) merged 2 commits into
masterfrom
user/chemwolf6922/fix-socket-channel-set-exit-events

Conversation

@chemwolf6922

Copy link
Copy Markdown
Contributor

Summary of the Pull Request

Set the exit events as specified instead of ignoring them.

PR Checklist

  • Closes: Link to issue #xxx
  • Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • Tests: Added/updated if needed and all pass
  • Localization: All end user facing strings can be localized
  • Dev docs: Added/updated if needed
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

@chemwolf6922
Feng Wang (chemwolf6922) requested a review from a team as a code owner June 26, 2026 08:05
Copilot AI review requested due to automatic review settings June 26, 2026 08:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes SocketChannel exit-event handling on Windows by actually applying the caller-specified exit events instead of effectively discarding them, so socket operations can be canceled/aborted on the intended shutdown signals.

Changes:

  • Fix SocketChannel::SetExitEvents to update m_exitEvents with the provided events.
  • Return the previous exit-event list from SetExitEvents after updating the member.
Comment thread src/shared/inc/SocketChannel.h Outdated
OneBlue
Blue (OneBlue) previously approved these changes Jun 26, 2026

@OneBlue Blue (OneBlue) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Great catch, thank you !

@chemwolf6922
Feng Wang (chemwolf6922) merged commit 902d0c3 into master Jun 30, 2026
11 checks passed
@chemwolf6922
Feng Wang (chemwolf6922) deleted the user/chemwolf6922/fix-socket-channel-set-exit-events branch June 30, 2026 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants