Switch time() calls to monotonic clock calls (#7597) master
authorGabriel Braga <gabriel.braga@intra2net.com>
Thu, 4 Apr 2024 09:01:32 +0000 (11:01 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 5 Apr 2024 11:04:19 +0000 (13:04 +0200)
commit0a531de652b3c0d1f3d7810f4f772d37b64c8a10
tree4aa34ad6fc303d3b1694f0b3ec856630d91ceecc
parent08059d7fb37e975616bac50945ba7b0d145c242e
Switch time() calls to monotonic clock calls (#7597)

In the event of a time warp the use of time() causes connections to collapse.
This removes this problem by using a monotonic clock, based on libi2ncommon.
src/CMakeLists.txt
src/monotonic_clock.cpp [new file with mode: 0644]
src/monotonic_clock.hxx [new file with mode: 0644]
src/server.cpp
src/server.hxx
src/socket_client.cpp