Commit 34dec04
Decouple LSPS4 webhooks from liquidity loop
Send LSPS4 wake-up webhooks in the background instead of awaiting the
HTTP response on the liquidity event loop.
Direct webhook delivery was meant to reduce wake-up latency, but waiting
for the response made unrelated liquidity work depend on the client's
webhook handler. When that handler keeps the request open while the
node wakes and starts processing payments, follow-up actions such as
opening a channel can be delayed behind the webhook.
Keep a long timeout on the background request as cleanup for genuinely
stuck connections. The timeout is not part of LSPS4 control flow; it is
there to bound resource usage while still treating the webhook as
best-effort.1 parent b1d80e0 commit 34dec04
1 file changed
Lines changed: 28 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| |||
1430 | 1434 | | |
1431 | 1435 | | |
1432 | 1436 | | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
1433 | 1441 | | |
1434 | 1442 | | |
1435 | 1443 | | |
1436 | 1444 | | |
1437 | 1445 | | |
1438 | 1446 | | |
1439 | | - | |
1440 | | - | |
1441 | | - | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
1442 | 1467 | | |
1443 | 1468 | | |
1444 | 1469 | | |
| |||
0 commit comments