You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when the sending ILP connector sends a packet and it expires, we end up crashing the node process. This is because the packet expiry check is done via setTimeout, with the callback throwing an error that causes an uncaughtException. This leads to a SIGTERM, and the app crashes/exits.
The node process does not crash/exit if a packet from the sending connector expires.
Additional context
setTimeout callbacks are treated in a separate call stack as part of the node event loop, this means they are handled outside of the code where they were registered.
The text was updated successfully, but these errors were encountered:
Bug Report
Currently, when the sending ILP connector sends a packet and it expires, we end up crashing the node process. This is because the packet expiry check is done via
setTimeout
, with the callback throwing an error that causes anuncaughtException
. This leads to aSIGTERM
, and the app crashes/exits.rafiki/packages/backend/src/payment-method/ilp/connector/core/middleware/expire.ts
Lines 10 to 26 in cd3d893
Expected behavior
The node process does not crash/exit if a packet from the sending connector expires.
Additional context
setTimeout
callbacks are treated in a separate call stack as part of the node event loop, this means they are handled outside of the code where they were registered.The text was updated successfully, but these errors were encountered: