Skip to content

Auto-port 4.1: Native transports: Correctly create pipe when pipe2 is not supported#16598

Merged
normanmaurer merged 2 commits into
4.1from
auto-port-pr-16592-to-4.1
Apr 9, 2026
Merged

Auto-port 4.1: Native transports: Correctly create pipe when pipe2 is not supported#16598
normanmaurer merged 2 commits into
4.1from
auto-port-pr-16592-to-4.1

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #16592 to 4.1
Cherry-picked commit: 1b9e868


Motivation:

We incorrectly used F_SETFD to try to set the fd to non blocking when pipe2 is not supported. This is not correct as we need to use F_SETFL.

Modifications:

  • Get current flags and add O_NONBLOCK via F_SETFL

Result:

Pipe is correctly set to non blocking mode even if pipe2 is not supported

…16592)

Motivation:

We incorrectly used F_SETFD to try to set the fd to non blocking when
pipe2 is not supported. This is not correct as we need to use F_SETFL.

Modifications:

- Get current flags and add O_NONBLOCK via F_SETFL

Result:

Pipe is correctly set to non blocking mode even if pipe2 is not
supported

(cherry picked from commit 1b9e868)
@normanmaurer normanmaurer merged commit d9c0c10 into 4.1 Apr 9, 2026
19 checks passed
@normanmaurer normanmaurer deleted the auto-port-pr-16592-to-4.1 branch April 9, 2026 12:11
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