From b436cf6e4794a32b3331a8727d10bf000ba55de2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 31 Jan 2021 22:28:25 -1000 Subject: lei: increase initial timeout PublicInbox::Listener unconditionally sets O_NONBLOCK upon accept(), so we need a larger timeout under heavy load since there's no "dataready" accept filter on the listener. With O_NONBLOCK already set, we don't have to set it at ->event_step_init --- script/lei | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script/lei') diff --git a/script/lei b/script/lei index 006c1180..f92dd302 100755 --- a/script/lei +++ b/script/lei @@ -79,7 +79,8 @@ Falling back to (slow) one-shot mode my $buf = join("\0", scalar(@ARGV), @ARGV); while (my ($k, $v) = each %ENV) { $buf .= "\0$k=$v" } $buf .= "\0\0"; - $send_cmd->($sock, [ 0, 1, 2, fileno($dh) ], $buf, MSG_EOR); + $send_cmd->($sock, [ 0, 1, 2, fileno($dh) ], $buf, MSG_EOR) or + die "sendmsg: $!"; my $x_it_code = 0; while (1) { my (@fds) = $recv_cmd->($sock, $buf, 4096 * 33); -- cgit v1.2.3-24-ge0c7