Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
    npro  
 Modern all-safe Rust Network Protocol library supporting h1, h2, h3, ws, wt sans-IO and with socket IO + tls
git clone https://npro.rs/repo/npro
 
root / scripts / sai-builder.service
Author[]Andy Green <andy@warmcat.com> 2021-10-12 10:05 UTC
Committer[]Andy Green <andy@warmcat.com> 2021-10-12 10:05 UTC
Treee1b0b4f2ed3e66e69976b225f4dbd040f2b4028d   Raw Patch
 
set ulimit suitable for libgit2
set ulimit suitable for libgit2
diff --git a/src/builder/b-sai.c b/src/builder/b-sai.c index 35d51c3..d7bf7d4 100644 --- a/src/builder/b-sai.c +++ b/src/builder/b-sai.c @@ -514,11 +514,12 @@ int main(int argc, const char **argv) info.options = LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT | LWS_SERVER_OPTION_VALIDATE_UTF8 | LWS_SERVER_OPTION_EXPLICIT_VHOSTS; + info.rlimit_nofile = 20000; signal(SIGINT, sigint_handler); info.pss_policies_json = default_ss_policy; - info.fd_limit_per_thread = 1 + 128 + 1; + info.fd_limit_per_thread = 1 + 256 + 1; /* hook up our lws_system state notifier */
Page fetched 0s ago, creation time: 2ms (vhost etag hits: 0%, cache hits: 0%)