Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mo5Jm-0003p7-27 for pgsql-bugs@arkaria.postgresql.org; Fri, 19 Nov 2021 14:56:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mo5Jk-00045y-IO for pgsql-bugs@arkaria.postgresql.org; Fri, 19 Nov 2021 14:56:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mo5Jk-00045o-AL for pgsql-bugs@lists.postgresql.org; Fri, 19 Nov 2021 14:56:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mo5Jh-0001gf-Gx for pgsql-bugs@lists.postgresql.org; Fri, 19 Nov 2021 14:56:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1AJEuV373042723; Fri, 19 Nov 2021 09:56:31 -0500 From: Tom Lane To: Thomas Munro cc: Noah Misch , Andrey Borodin , PostgreSQL mailing lists , Michael Paquier , Peter Geoghegan , Andres Freund Subject: Re: conchuela timeouts since 2021-10-09 system upgrade In-reply-to: References: <640FA6DC-A998-4499-B3B4-2773685B8C56@yandex-team.ru> <20211029025600.GB298507@rfd.leadboat.com> <20211110041541.GA971565@rfd.leadboat.com> <4C43D751-8E0B-478D-B358-7C52BB5AFDAA@yandex-team.ru> <633901636829263@sas1-7f179212b74f.qloud-c.yandex.net> <20211114000952.GA1117894@rfd.leadboat.com> <0CD98EB5-71AC-4D84-BC90-93674B6330F4@yandex-team.ru> <20211119061325.GA1337598@rfd.leadboat.com> Comments: In-reply-to Thomas Munro message dated "Fri, 19 Nov 2021 22:07:42 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3042721.1637333791.1@sss.pgh.pa.us> Date: Fri, 19 Nov 2021 09:56:31 -0500 Message-ID: <3042722.1637333791@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > On Fri, Nov 19, 2021 at 7:13 PM Noah Misch wrote: >> Looks like optimal material for a kernel bug report. Excellent discovery. > https://bugs.dragonflybsd.org/issues/3307 I see they're pushing back on whether this is a bug. I failed to find a way to quickly comment on the bug report, but I suggest you quote POSIX select(2) at them: A descriptor shall be considered ready for reading when a call to an input function with O_NONBLOCK clear would not block, whether or not the function would transfer data successfully. (The function might return data, an end-of-file indication, or an error other than one indicating that it is blocked, and in each of these cases the descriptor shall be considered ready for reading.) A descriptor shall be considered ready for writing when a call to an output function with O_NONBLOCK clear would not block, whether or not the function would transfer data successfully. I don't know whether it'd help to point out that the test program works as expected on other BSDen. (I'm planning to go try it on a few more platforms in a bit, but in any case the standards-compliance question looks pretty open-and-shut to me.) regards, tom lane