Try to increase limits on start
This commit is contained in:
parent
a60738ff89
commit
fc28e18ffd
5 changed files with 26 additions and 1 deletions
|
|
@ -246,6 +246,11 @@ async fn async_main(opts: Opts) -> anyhow::Result<()> {
|
|||
log_file_rust_log: Some(&opts.log_file_rust_log),
|
||||
})?;
|
||||
|
||||
match librqbit::try_increase_nofile_limit() {
|
||||
Ok(limit) => info!(limit = limit, "inreased open file limit"),
|
||||
Err(e) => warn!("failed increasing open file limit: {:#}", e),
|
||||
};
|
||||
|
||||
let mut sopts = SessionOptions {
|
||||
disable_dht: opts.disable_dht,
|
||||
disable_dht_persistence: opts.disable_dht_persistence,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue