mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
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 <zyu@yugabyte.com> Reviewed-by: Maksim Milyutin <milyutinma@gmail.com> Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/77def86b27e41f0efcba411460e929ae%40postgrespro.ru
This commit is contained in:
@ -1012,9 +1012,9 @@ include_dir 'conf.d'
|
||||
the kernel reports that the connection is closed.
|
||||
</para>
|
||||
<para>
|
||||
This option is currently available only on systems that support the
|
||||
non-standard <symbol>POLLRDHUP</symbol> extension to the
|
||||
<symbol>poll</symbol> 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.
|
||||
</para>
|
||||
<para>
|
||||
If the value is specified without units, it is taken as milliseconds.
|
||||
|
Reference in New Issue
Block a user