pgsql: Fix fallback behavior when server sends an ERROR early at startu

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Fix fallback behavior when server sends an ERROR early at startu
Дата
Msg-id E1sXKDl-001Iy3-Vt@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix fallback behavior when server sends an ERROR early at startup

With sslmode=prefer, the desired behavior is to completely fail the
connection attempt, *not* fall back to a plaintext connection, if the
server responds to the SSLRequest with an error ('E') response instead
of rejecting SSL with an 'N' response. This was broken in commit
05fd30c0e7.

Reported-by: Jacob Champion
Reviewed-by: Michael Paquier
Discussion:
https://www.postgresql.org/message-id/CAOYmi%2Bnwvu21mJ4DYKUa98HdfM_KZJi7B1MhyXtnsyOO-PB6Ww%40mail.gmail.com
Backpatch-through: 17

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c95d2159c1dd3f269383a9bd830e1c804dba34c8

Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: pgsql: doc: Enhance documentation for postgres_fdw_get_connections() ou
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix using injection points at backend startup in EXEC_BACKEND mo