diff options
author | 2022-03-16 08:01:35 -0700 | |
---|---|---|
committer | 2022-03-16 08:02:15 -0700 | |
commit | 8b73afad95c3abd2e7e1038beb84198f266abd95 (patch) | |
tree | f5a76aba9675eeb1d3abc2b691fa2f624423d71c /src | |
parent | f63ddac287fde66d339206ae8da8139ca53cc8c4 (diff) | |
download | bun-8b73afad95c3abd2e7e1038beb84198f266abd95.tar.gz bun-8b73afad95c3abd2e7e1038beb84198f266abd95.tar.zst bun-8b73afad95c3abd2e7e1038beb84198f266abd95.zip |
Increase from 4ms -> 40ms for timeout
Diffstat (limited to 'src')
-rw-r--r-- | src/thread_pool.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread_pool.zig b/src/thread_pool.zig index dfdd3ed93..35d93cec2 100644 --- a/src/thread_pool.zig +++ b/src/thread_pool.zig @@ -295,7 +295,7 @@ fn _wait(self: *ThreadPool, _is_waking: bool, comptime sleep_on_idle: bool) erro // If it's been roughly 2ms since the last network request, go to sleep! // this is 4ms because run_for_ns runs for 10 microseconds // 10 microseconds * 400 == 4ms - if (idle_network_ticks > 40) { + if (idle_network_ticks > 400) { idle_network_ticks = 0; // force(true) causes an assertion failure // judging from reading mimalloc's code, |