From: | Thomas Munro <tmunro(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Add WL_SOCKET_CLOSED for socket shutdown events. |
Date: | 2022-02-14 04:14:27 |
Message-ID: | E1nJSkt-0002c7-UQ@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(at)yugabyte(dot)com>
Reviewed-by: Maksim Milyutin <milyutinma(at)gmail(dot)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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2022-02-14 05:11:37 | Re: pgsql: Add TAP test to automate the equivalent of check_guc |
Previous Message | Amit Kapila | 2022-02-14 03:35:18 | pgsql: WAL log unchanged toasted replica identity key attributes. |