]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei: die on ECONNRESET
authorEric Wong <e@80x24.org>
Wed, 28 Jul 2021 00:37:18 +0000 (00:37 +0000)
committerEric Wong <e@80x24.org>
Wed, 28 Jul 2021 05:16:34 +0000 (05:16 +0000)
ECONNRESET should be rare on a private local socket, and if
we hit it, it's because we're hitting the listen() limit.

script/lei

index fce8124acc95795d113583416f179927da66dbf1..99d94b4e6618f18a84d57826676d6b6afd1caba9 100755 (executable)
@@ -115,7 +115,6 @@ while (1) {
        my (@fds) = $recv_cmd->($sock, my $buf, 4096 * 33);
        if (scalar(@fds) == 1 && !defined($fds[0])) {
                next if $!{EINTR};
-               last if $!{ECONNRESET};
                die "recvmsg: $!";
        }
        last if $buf eq '';