From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add WL_SOCKET_CLOSED for socket shutdown events.
Date: Mon, 14 Feb 2022 04:14:27 +0000
Message-ID: <E1nJSkt-0002c7-UQ@gemulon.postgresql.org> (raw)
Add WL_SOCKET_CLOSED for socket shutdown events.
Provide a way for WaitEventSet to report that the remote peer has shut
down its socket, independently of whether there is any buffered data
remaining to be read. This works only on systems where the kernel
exposes that information, namely:
* WAIT_USE_POLL builds using POLLRDHUP, if available
* WAIT_USE_EPOLL builds using EPOLLRDHUP
* WAIT_USE_KQUEUE builds using EV_EOF
Reviewed-by: Zhihong Yu <zyu@yugabyte.com>
Reviewed-by: Maksim Milyutin <milyutinma@gmail.com>
Discussion: https://postgr.es/m/77def86b27e41f0efcba411460e929ae%40postgrespro.ru
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/50e570a59e7f86bb41f029a66b781fc79b8d50f1
Modified Files
--------------
src/backend/storage/ipc/latch.c | 79 ++++++++++++++++++++++++++++++++++++-----
src/include/storage/latch.h | 6 ++--
2 files changed, 74 insertions(+), 11 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tmunro@postgresql.org
Subject: Re: pgsql: Add WL_SOCKET_CLOSED for socket shutdown events.
In-Reply-To: <E1nJSkt-0002c7-UQ@gemulon.postgresql.org>
References: <E1nJSkt-0002c7-UQ@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox