Kixunil / btc-rpc-proxy

Finer-grained permission management for bitcoind.
MIT License
63 stars 18 forks source link

Implemented systemd socket activation #10

Closed Kixunil closed 3 years ago

Kixunil commented 3 years ago

This adds support for systemd socket activation which can improve boot times while avoiding spurious "connection refused" errors in clients. This uses the new systemd_socket crate (created by me).

It is a breaking change in lib API because the listener must be passed separately since it's not reusable. The configuration is backwards-compatible.

Not tested yet

@dr-bonez

Kixunil commented 3 years ago

Sorry, was too quick to merge, I fixed the error messages in the last commit.