From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 871E01F8C7 for ; Wed, 28 Jul 2021 00:37:19 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/2] lei: die on ECONNRESET Date: Wed, 28 Jul 2021 00:37:18 +0000 Message-Id: <20210728003719.24083-2-e@80x24.org> In-Reply-To: <20210728003719.24083-1-e@80x24.org> References: <20210728003719.24083-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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 | 1 - 1 file changed, 1 deletion(-) diff --git a/script/lei b/script/lei index fce8124a..99d94b4e 100755 --- a/script/lei +++ b/script/lei @@ -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 '';