OpenBSD cvs log

created 2022-12-18T08:41:48Z
begin 2022-12-13T00:00:00Z
end 2022-12-14T00:00:00Z
path src/sys
commits 2

date 2022-12-13T17:30:36Z
author cheloha
files src/sys/kern/kern_tc.c log diff annotate
src/sys/sys/time.h log diff annotate
message timecounting: add getbinruntime(), getnsecruntime()

The networking people want a fast, monotonic clock that only advances
while the system is not suspended. The runtime clock satisfies most
of these requirements, so introduce getnsecruntime() to provide a fast
means for reading it.

Based on patches from jca@ and claudio@.

ok yasuoka@

date 2022-12-13T18:10:55Z
author claudio
files src/sys/netinet/tcp_var.h log diff annotate
message In tcp_now() switch from getnsecuptime() to getnsecruntime()

The tcp timer is not supposed to run during suspend but getnsecuptime() does
and because of this sessions with TCP_KEEPALIVE on reset after a few hours
of sleep.

Problem noticed by mlarkin@, investigation by yasuoka@ additional testing jca@
OK yasuoka@ jca@ cheloha@