svc/connect.in: Maintain time of last reconnect attempt and add rate limit.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 28 Apr 2022 14:16:46 +0000 (15:16 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 30 Apr 2022 00:51:38 +0000 (01:51 +0100)
commit9c9378ae582e7af88e390be36991a51f44f00e35
treeb3b20b8957514108882c7cbb7c699166e290d8ef
parent89fbbc51c899262a0105964503f70d55392ecaee
svc/connect.in: Maintain time of last reconnect attempt and add rate limit.

This isn't used yet, but it's there as a general mechanism.

Don't rate-limit reconnections provoked by the pinger internally because
(a) these are relatively infrequent anyway by the nature of the pinger
mechanism, and (b) the current rate-limiting strategy is simply to
ignore a reconnection request if we've already made an attempt fairly
recently, so there isn't (and it's not worth building) the necessary
machinery to defer reconnection, and determine whether a deferred
reconnection is still needed.
svc/connect.in