summaryrefslogtreecommitdiff
path: root/src/proto.c
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2025-04-15 13:05:19 +0200
committerJesper Jensen <jesper@jnsn.dev>2025-04-15 13:05:19 +0200
commit6386a3eb9628315e23e16637ea5d29e72b053f0f (patch)
tree00c6a62072037c2f7be74d379e6f6ef341d9d590 /src/proto.c
parenta2f18ae0234bc6dbccaebd21bc7ea07ceac2ee7a (diff)
Expose the number of keepalive pings we send
Diffstat (limited to 'src/proto.c')
-rw-r--r--src/proto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto.c b/src/proto.c
index d4f8b59..c1cc392 100644
--- a/src/proto.c
+++ b/src/proto.c
@@ -693,6 +693,7 @@ int proto_run(struct dht* dht, char* buff, size_t recv_len, struct sockaddr_in*
fatal("NOPE %d", rc);
}
+ prom_counter_inc(keepalive_count, NULL);
oldest->expire = 0;
routing_oldest(&oldest);
}