mempool/electrs

Electrum RPC server does not shut down gracefully

Closed this issue · 1 comments

When there are active connections with Electrum RPC users, the signal for SIGTERM etc. is not propagated properly, due to tight loops of TcpStreams waiting on peers.

  • Convert Electrum RPC to use async (making it much easier to cancel)
  • Insert proper cancellation

This has been fixed without switching to async.