UDP Transport: Drop peers faster
Opened 18 months ago
Last modified 18 months ago
#2646newdefect
UDP Transport: Drop peers faster
Reported by:joggerOwned by:zzz Priority: minor Milestone: undecided Component: router/transport Version: 0.9.43 Keywords:
Cc:
Parent Tickets:
Sensitive: no
Description
There are frequent overruns of the 512 message _outboundqueue with 100s of drops in the message pool. failed(OutboundMessageState? msg, boolean allowPeerFailure) drops a peer after 50-60 sec, which is way too long and possibly causes > 1000 messages to die.
I suggest using (peer.getLastSendTime() - peer.getLastSendFullyTime() ⇐ 10 * 1000) for the timeout, which is longer than the message timeout. It strikes when no ACK came in for at least 10 sec, which is longer than an Rpi needs to dump heap onto SD card.