pex: improve keepalive handling master
authorFelix Fietkau <nbd@nbd.name>
Wed, 29 Jan 2025 20:43:02 +0000 (21:43 +0100)
committerFelix Fietkau <nbd@nbd.name>
Wed, 29 Jan 2025 20:45:36 +0000 (21:45 +0100)
commit082b5482b97f20dc4745bc3d645e33b584cc28e4
treeeba265a165e688a9422dd0a1d612e0b3a4894cc5
parent24e4aafaaa2fba1e073491627fe56e0e143ac956
pex: improve keepalive handling

Whenever idle time exceeds keepalive time, ping up to once
every 1+keepalive/2 interval. Avoids spuriously treating a peer as
disconnected.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
host.h
pex.c
wg.c