Skip to content

Fix Incorrect nanos-to-millis conversion in epoll_wait EINTR retry lo…#16248

Merged
normanmaurer merged 1 commit into4.1from
epoll41
Feb 10, 2026
Merged

Fix Incorrect nanos-to-millis conversion in epoll_wait EINTR retry lo…#16248
normanmaurer merged 1 commit into4.1from
epoll41

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

…op (#16245)

Motivation:

When epoll_wait is interrupted by a signal (EINTR), the retry loop in netty_epoll_wait should correctly recompute the remaining timeout in milliseconds using the monotonic clock, so that scheduled tasks fire at the correct time.

Modification:

  • Fix nanos to millis conversion.
  • Add unit test

Result:

Fixes #16244

…op (#16245)

Motivation:

When epoll_wait is interrupted by a signal (EINTR), the retry loop in netty_epoll_wait should correctly recompute
the remaining timeout in milliseconds using the monotonic clock, so that scheduled tasks fire at the correct time.


Modification:

- Fix nanos to millis conversion.
- Add unit test

Result:

Fixes #16244


Co-authored-by: Norman Maurer <norman_maurer@apple.com>
@normanmaurer normanmaurer added this to the 4.1.132.Final milestone Feb 10, 2026
@normanmaurer normanmaurer merged commit d22b216 into 4.1 Feb 10, 2026
19 checks passed
@normanmaurer normanmaurer deleted the epoll41 branch February 10, 2026 15:36
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.

2 participants