]> git.ipfire.org Git - thirdparty/chrony.git/commit
stubs: rework emulation of asynchronous resolver to use pipes
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 12 Dec 2016 08:58:56 +0000 (09:58 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 13 Dec 2016 11:57:25 +0000 (12:57 +0100)
commit0c9a19ded56ed893aab02e1f62ca259236bdf6e0
tree369c3df636fa93c19b4751af5a3cf8981ec9f033
parentb7bd7469b7ff690c887428b06fca0c2281790f7a
stubs: rework emulation of asynchronous resolver to use pipes

With a larger number of configured servers, the handler of the emulated
resolver repeatedly scheduled timeout of zero, which triggered the
infinite loop detection in the scheduler and caused abort. This bug was
introduced in commit 967e358dbc93aa7a99c3c0ee2a634f1fedecba74.

Rework the code to use pipes instead of timeouts to avoid this problem.
stubs.c