diff options
author | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2023-04-21 17:54:43 +0000 |
---|---|---|
committer | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2023-04-21 17:54:43 +0000 |
commit | 732ccaa4de987591111c38707bbf979b5296fda9 (patch) | |
tree | 3f56be1306d44ab766c058fff1b8e87c5587c089 /CMakeLists.txt | |
parent | a9d2d40b18a2b97dc8938c4a207befc98610ff7b (diff) | |
download | libapr-732ccaa4de987591111c38707bbf979b5296fda9.tar.gz |
poll: Round up milliseconds timeouts.
When converting appr_interval_time_t (usecs) to system call's msecs, round up.
apr_*poll() calls should wait *at least* the given timeout, not less.
poll: Follow up to r1902236: Fix poll() sleeps cases.
Don't convert timeout to milliseconds before potentially callig apr_sleep().
Tests for "poll() didn't sleep" now use the real timeout as lower limit.
tests: check whether epoll_wait() timeout is reliable and adjust justsleep().
* configure.in:
Small epoll_wait() loop to check timeout reliability and set
HAVE_EPOLL_WAIT_RELIABLE_TIMEOUT.
* test/testpoll.c(justsleep):
Allow some jiffy is !HAVE_EPOLL_WAIT_RELIABLE_TIMEOUT.
tests: Follow up to r1908616: Simplify epoll_wait() check.
Merges r1902236, r1902258, r1908616, r1908618 from trunk.
Merges r1909334 from 1.8.x.
Submitted by: ylavic
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1909335 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions