diff options
author | 2022-09-13 17:47:50 -0700 | |
---|---|---|
committer | 2022-09-13 17:47:50 -0700 | |
commit | 0935ab14d6cad3a3c80bee5b585381cfbbe74699 (patch) | |
tree | dc09b16224f335c3bbe7e8af21c6ec5d314dc706 | |
parent | 9797b676b1ab99bda5f9dfa9c88e887e22e0c718 (diff) | |
download | bun-0935ab14d6cad3a3c80bee5b585381cfbbe74699.tar.gz bun-0935ab14d6cad3a3c80bee5b585381cfbbe74699.tar.zst bun-0935ab14d6cad3a3c80bee5b585381cfbbe74699.zip |
Fix Linux 200ms http client delay
https://man7.org/linux/man-pages/man2/send.2.html See the section on MSG_MORE
-rw-r--r-- | src/http_client_async.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http_client_async.zig b/src/http_client_async.zig index 4f582d10d..869ff8724 100644 --- a/src/http_client_async.zig +++ b/src/http_client_async.zig @@ -1178,7 +1178,7 @@ pub fn onWritable(this: *HTTPClient, comptime is_first_call: bool, comptime is_s std.debug.assert(!socket.isShutdown()); std.debug.assert(!socket.isClosed()); } - const amount = socket.write(to_send, true); + const amount = socket.write(to_send, false); if (comptime is_first_call) { if (amount == 0) { // don't worry about it |