about summary refs log tree commit homepage
path: root/script
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-01-31 22:28:25 -1000
committerEric Wong <e@80x24.org>2021-02-01 11:38:18 +0000
commitb436cf6e4794a32b3331a8727d10bf000ba55de2 (patch)
treebd651e482efa01c07061d5d73d6d141f154e80ab /script
parent2e8256ba1ced49a686bf5ff1c97375f8ccb30d4a (diff)
downloadpublic-inbox-b436cf6e4794a32b3331a8727d10bf000ba55de2.tar.gz
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
Diffstat (limited to 'script')
-rwxr-xr-xscript/lei3
1 files changed, 2 insertions, 1 deletions
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);