Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Set open file limit in remote-helper
cloudhead committed 2 years ago
commit 55d16ff2ae8e4fbacf4fb0cfe1afed00512bde78
parent 045b3e717500d20d51e2932f5c654638736c8138
1 file changed +6 -0
modified radicle-remote-helper/src/lib.rs
@@ -122,6 +122,12 @@ pub fn run(profile: radicle::Profile) -> Result<(), Error> {
    let mut line = String::new();
    let mut opts = Options::default();

+
    if let Err(e) = radicle::io::set_file_limit(4096) {
+
        if debug {
+
            eprintln!("git-remote-rad: unable to set open file limit: {e}");
+
        }
+
    }
+

    loop {
        let tokens = read_line(&stdin, &mut line)?;