]> git.gir.st - ircpipe.git/commit
initiate PING if socket idles for too long
authorTobias Girstmair <t@thi3nkpad.localdomain>
Fri, 17 May 2024 14:55:37 +0000 (16:55 +0200)
committerTobias Girstmair <t@thi3nkpad.localdomain>
Fri, 17 May 2024 16:21:35 +0000 (18:21 +0200)
commit68c5892df03743e1a52481d4e6ed1123d16c1f0f
tree8ac1a27b2f3c684e34708bc52a42d7d3abd01c31
parenta9e2a30e7936002d24cd40f329c03fddb280dcae
initiate PING if socket idles for too long

note that we only start tracking the monotonic timestamp of last
incoming socket activity in irc_poll(). because of that, we must
initialize recv_ts or we risk never sending the first PING when the
server doesn't send anything after the 001 numeric (e.g. znc with no
joined channels).

there isn't really a reason to configure ping interval/pong timeout, so
we just pick some values.
ircpipe.c
Imprint / Impressum