diff options
| author | Chris HasiĆski <krzysztof.hasinski@gmail.com> | 2026-01-26 16:17:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-26 10:17:35 -0500 |
| commit | 5add7c3ea9a13e657fc7cba78b2633b9548a55aa (patch) | |
| tree | c060ff47045033a4063227bc039957877bac57aa /test/testunit/test_error.rb | |
| parent | 2947aa41d4e6aa340edb0979c3e59bb6b6aca3a4 (diff) | |
timer_thread_check_exceed() was returning true when the remaining time
was less than 1ms, treating it as "too short time". This caused
sub-millisecond sleeps (like sleep(0.0001)) to return immediately
instead of actually sleeping.
The fix removes this optimization that was incorrectly short-circuiting
short sleep durations. Now the timeout is only considered exceeded when
the actual deadline has passed.
Note: There's still a separate performance issue where MN_THREADS mode
is slower for sub-millisecond sleeps due to the timer thread using
millisecond-resolution polling. This will require a separate fix to
use sub-millisecond timeouts in kqueue/epoll.
[Bug #21836]
Diffstat (limited to 'test/testunit/test_error.rb')
0 files changed, 0 insertions, 0 deletions
