Skip to content

Epoll / Kqueue: Correctly handle receive of FD#16872

Merged
normanmaurer merged 2 commits into
4.1from
fd_41
Jun 2, 2026
Merged

Epoll / Kqueue: Correctly handle receive of FD#16872
normanmaurer merged 2 commits into
4.1from
fd_41

Conversation

@normanmaurer

Copy link
Copy Markdown
Member

Motivation:

We didn't correctly handle all error cases and special cases when receiving FDs via UDS. This could lead to leaked FDs.

Modifications:

  • Correctly handle truncation
  • Correctly handle the case when we receive more then one FD

Result:

No more FD leak

Motivation:

We didn't correctly handle all error cases and special cases when receiving FDs via UDS. This could lead to leaked FDs.

Modifications:

- Correctly handle truncation
- Correctly handle the case when we receive more then one FD

Result:

No more FD leak
@normanmaurer normanmaurer added the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Jun 1, 2026
@chrisvest chrisvest added this to the 4.1.135.Final milestone Jun 1, 2026
@normanmaurer normanmaurer merged commit 652663c into 4.1 Jun 2, 2026
18 checks passed
@normanmaurer normanmaurer deleted the fd_41 branch June 2, 2026 16:12
@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port PR for 5.0: #16902

@github-actions github-actions Bot removed the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Jun 2, 2026
chrisvest pushed a commit that referenced this pull request Jun 4, 2026
Auto-port of #16872 to 5.0
Cherry-picked commit: 652663c

---
Motivation:

We didn't correctly handle all error cases and special cases when
receiving FDs via UDS. This could lead to leaked FDs.

Modifications:

- Correctly handle truncation
- Correctly handle the case when we receive more then one FD

Result:

No more FD leak

Co-authored-by: Norman Maurer <norman_maurer@apple.com>
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.

3 participants