From 8f7f46e5cece2d0b783fc60b3234c9d2826abec9 Mon Sep 17 00:00:00 2001 From: Justin Geibel Date: Fri, 21 Feb 2020 23:48:42 -0500 Subject: [PATCH] Increase the default thread count to 5 in development When using `conduit-hyper` to serve requests, if the max thread count is reached then new requests are rejected immediately rather than blocking. The fallback value for `SERVER_THREADS` is increased to ease local testing when setting `USE_HYPER=1`. Ref: #2204 --- src/bin/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/server.rs b/src/bin/server.rs index 19e5c3bb703..70faf49b781 100644 --- a/src/bin/server.rs +++ b/src/bin/server.rs @@ -50,7 +50,7 @@ fn main() -> Result<(), Box> { .map(|s| s.parse().expect("SERVER_THREADS was not a valid number")) .unwrap_or_else(|_| { if config.env == Env::Development { - 1 + 5 } else { 50 }