utxostack / ckb-bitcoin-spv-service

Synchronize headers to Bitcoin SPV clients running on the CKB chain.
MIT License
2 stars 4 forks source link

feat: try increasing file descriptor soft limit for service at start #24

Closed yangby-cryptape closed 7 months ago

yangby-cryptape commented 7 months ago

Motivation

Resolve #23.

How to test?

First, set the soft limit and hard limit with different values:

ulimit -Sn 1024
sudo ulimit -Hn 65536

then run ckb-bitcoin-spv-service serve -v ..., the log outputs will contain the following message:

[2024-04-10THH:MM:SSZ INFO  ckb_bitcoin_spv_service::utilities::platform] raise file descriptor resource limit from 1024 to 65536