Skip to content

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

Merged
normanmaurer merged 1 commit into5.0from
epoll5
Feb 10, 2026
Merged

Fix Incorrect nanos-to-millis conversion in epoll_wait EINTR retry lo…#16249
normanmaurer merged 1 commit into5.0from
epoll5

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 5.0.0.Final milestone Feb 10, 2026
@normanmaurer normanmaurer merged commit 914801f into 5.0 Feb 10, 2026
19 of 23 checks passed
@normanmaurer normanmaurer deleted the epoll5 branch February 10, 2026 17:29
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