diff options
| author | Thomas Munro | 2022-02-14 03:29:44 +0000 |
|---|---|---|
| committer | Thomas Munro | 2022-02-14 03:52:23 +0000 |
| commit | cba5b994c990bba8df9b8bb75f25ca40aef6b68b (patch) | |
| tree | 8189f1b0691ee24a9289afceb3dbf2ea1a4bcd6d /src/include/libpq | |
| parent | 50e570a59e7f86bb41f029a66b781fc79b8d50f1 (diff) | |
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
Diffstat (limited to 'src/include/libpq')
| -rw-r--r-- | src/include/libpq/libpq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/libpq/libpq.h b/src/include/libpq/libpq.h index f0786e08b48..d348a55812e 100644 --- a/src/include/libpq/libpq.h +++ b/src/include/libpq/libpq.h @@ -62,6 +62,7 @@ extern WaitEventSet *FeBeWaitSet; #define FeBeWaitSetSocketPos 0 #define FeBeWaitSetLatchPos 1 +#define FeBeWaitSetNEvents 3 extern int StreamServerPort(int family, const char *hostName, unsigned short portNumber, const char *unixSocketDir, |
