chiark / gitweb /
timeout robustness: Track start time and duration
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Mar 2017 21:17:47 +0000 (21:17 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 11 Jun 2020 15:13:02 +0000 (16:13 +0100)
commitbee5408506a4923fbf94c891e16a126a3506321e
tree0c0b4f9e24f59ef9c063bc73a26155323a489f4a
parent514c20aa99cd2f29c7e5da1e263ab7e81e3a9ff3
timeout robustness: Track start time and duration

This allows us to detect if the clock rewinds, and restart our
timeouts from the new time.  Otherwise we might try to wait a very
long time.

The result is that clock instability may now produce spurious failures
of some queries, but it should no longer cause queries to be
indefinitely delayed.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/event.c
src/internal.h