summaryrefslogtreecommitdiff
path: root/include/apr.hwc
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2023-04-21 17:54:43 +0000
committerYann Ylavic <ylavic@apache.org>2023-04-21 17:54:43 +0000
commitc9d115732f6517b8f28b0d07d259476bac338034 (patch)
tree3f56be1306d44ab766c058fff1b8e87c5587c089 /include/apr.hwc
parent84ef02ce9694661b0e6dbeed65c70b8c353a2e7a (diff)
downloadapr-c9d115732f6517b8f28b0d07d259476bac338034.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 'include/apr.hwc')
0 files changed, 0 insertions, 0 deletions