aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-09-13 17:47:50 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-09-13 17:47:50 -0700
commit0935ab14d6cad3a3c80bee5b585381cfbbe74699 (patch)
treedc09b16224f335c3bbe7e8af21c6ec5d314dc706
parent9797b676b1ab99bda5f9dfa9c88e887e22e0c718 (diff)
downloadbun-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.zig2
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