]> git.ipfire.org Git - thirdparty/bind9.git/commit
Update the event loop's time after executing a task
authorAram Sargsyan <aram@isc.org>
Fri, 5 May 2023 10:46:37 +0000 (10:46 +0000)
committerAram Sargsyan <aram@isc.org>
Tue, 20 Jun 2023 10:21:54 +0000 (10:21 +0000)
commit0c751ce72e828a0ab3783e2e5a6cad0da2d18ffd
treee1021911e9167830306e9118819c32d529cdefec
parent7f5beb751d5a70b93e4f0c7ff0d89d77f67ad832
Update the event loop's time after executing a task

Tasks can block for a long time, especially when used by tools in
interactive mode. Update the event loop's time to avoid unexpected
errors when processing later events during the same callback.
For example, newly started timers can fire too early, because the
current time was stale. See the note about uv_update_time() in the
https://docs.libuv.org/en/v1.x/timer.html#c.uv_timer_start page.
lib/isc/netmgr/netmgr.c