From cba5b994c990bba8df9b8bb75f25ca40aef6b68b Mon Sep 17 00:00:00 2001 From: Thomas Munro Date: Mon, 14 Feb 2022 16:29:44 +1300 Subject: Use WL_SOCKET_CLOSED for client_connection_check_interval. Previously we used poll() directly to check for a POLLRDHUP event. Instead, use the WaitEventSet API to poll the socket for WL_SOCKET_CLOSED, which knows how to detect this condition on many more operating systems. Reviewed-by: Zhihong Yu Reviewed-by: Maksim Milyutin Reviewed-by: Andres Freund Discussion: https://postgr.es/m/77def86b27e41f0efcba411460e929ae%40postgrespro.ru --- doc/src/sgml/config.sgml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index fc63172efde..53b361e7a92 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -1012,9 +1012,9 @@ include_dir 'conf.d' the kernel reports that the connection is closed. - This option is currently available only on systems that support the - non-standard POLLRDHUP extension to the - poll system call, including Linux. + This option relies on kernel events exposed by Linux, macOS, illumos + and the BSD family of operating systems, and is not currently available + on other systems. If the value is specified without units, it is taken as milliseconds. -- cgit v1.2.3