interledger-deprecated/ilp-plugin-payment-channel-framework

Errors cause RPC server to break down

sharafian opened this issue · 1 comments

When an error occurs in the payment channel handler for handleIncomingPrepare, the plugin ceases to accept incoming RPC connections, and also disconnects all of its sockets. I'm not certain why this occurs, but I'm looking into it.

Figured out the cause; it was an issue with my local setup. If the node process which is the payment channel listener crashes, it seems that the client won't re-establish the connection until it tries to make an RPC call itself. Because the client doesn't have a listener, there is no way for the server process to re-establish the connection itself. We may want to add a ping/pong function in order to keep the connection alive better.