Commit cba5b99
committed
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.ru1 parent 50e570a commit cba5b99
File tree
4 files changed
+29
-31
lines changed- doc/src/sgml
- src
- backend
- libpq
- utils/misc
- include/libpq
4 files changed
+29
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1012 | 1012 | | |
1013 | 1013 | | |
1014 | 1014 | | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
1018 | 1018 | | |
1019 | 1019 | | |
1020 | 1020 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
1960 | 1960 | | |
1961 | 1961 | | |
1962 | 1962 | | |
1963 | | - | |
1964 | | - | |
1965 | | - | |
1966 | | - | |
1967 | | - | |
1968 | | - | |
1969 | | - | |
1970 | | - | |
1971 | | - | |
| 1963 | + | |
1972 | 1964 | | |
1973 | 1965 | | |
1974 | | - | |
1975 | | - | |
1976 | | - | |
1977 | | - | |
1978 | | - | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
1979 | 1971 | | |
1980 | | - | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
1981 | 1975 | | |
1982 | | - | |
1983 | | - | |
1984 | | - | |
1985 | | - | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
1986 | 1989 | | |
1987 | | - | |
1988 | | - | |
1989 | | - | |
1990 | 1990 | | |
1991 | 1991 | | |
1992 | 1992 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12192 | 12192 | | |
12193 | 12193 | | |
12194 | 12194 | | |
12195 | | - | |
12196 | | - | |
12197 | | - | |
| 12195 | + | |
12198 | 12196 | | |
12199 | | - | |
| 12197 | + | |
12200 | 12198 | | |
12201 | 12199 | | |
12202 | | - | |
12203 | 12200 | | |
12204 | 12201 | | |
12205 | 12202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
0 commit comments