diff options
author | 2022-02-03 21:01:14 -0800 | |
---|---|---|
committer | 2022-02-03 21:01:14 -0800 | |
commit | baffe26dd1e8da568fc77da53d36cd9c77d38c1d (patch) | |
tree | 827c6915b46f996673379c4be4d785d32942d16a /src/thread_pool.zig | |
parent | 1993f9f9a5f3b62ec55ee605d15dfce63afecbcd (diff) | |
download | bun-baffe26dd1e8da568fc77da53d36cd9c77d38c1d.tar.gz bun-baffe26dd1e8da568fc77da53d36cd9c77d38c1d.tar.zst bun-baffe26dd1e8da568fc77da53d36cd9c77d38c1d.zip |
Fix bug with http client
Diffstat (limited to 'src/thread_pool.zig')
-rw-r--r-- | src/thread_pool.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/thread_pool.zig b/src/thread_pool.zig index 8281e473b..166705a81 100644 --- a/src/thread_pool.zig +++ b/src/thread_pool.zig @@ -266,7 +266,8 @@ fn _wait(self: *ThreadPool, _is_waking: bool, comptime sleep_on_idle: bool) erro if (end_count > 0) { while (HTTP.AsyncHTTP.active_requests_count.loadUnchecked() > HTTP.AsyncHTTP.max_simultaneous_requests) { - io.run_for_ns(std.time.ns_per_us * 10) catch {}; + io.run_for_ns(std.time.ns_per_ms) catch {}; + io.tick() catch {}; } } |