diff options
| author | Adam Soltys <[email protected]> | 2026-06-14 12:45:44 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-17 07:48:18 -0700 |
| commit | 0a1450ada9c20499fa86a619ee36176f717d5414 (patch) | |
| tree | ed4e279ccb6feea8f5d5f4e908900d3ede533de7 /scripts | |
| parent | 3d2a980971b59cdd2a4ea41b2da51f370eee6b75 (diff) | |
| download | coinos-server-0a1450ada9c20499fa86a619ee36176f717d5414.tar.gz coinos-server-0a1450ada9c20499fa86a619ee36176f717d5414.zip | |
lightning: watchdog only recycles on real backlog, not normal idle
Port of master 7b71c96b, refining the zombie-listener watchdog staging
adopted in 7c34b431. Treating "waitanyinvoice blocked > 5min while cl is
alive" as a stall false-fires during normal quiet periods (~26x in 6h on
master 2026-06-07) and needlessly recycles the cl listen socket. Instead,
when blocked past the threshold, probe cl on the MAIN socket with
waitanyinvoice(pay_index, 2s server-side timeout): an invoice returned
means a real backlog the wedged listener missed -> recycle; a timeout
(CLN 904) means the listener is just idle -> leave it alone.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
