pgsql: On Windows, close the client socket explicitly during backend sh

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: On Windows, close the client socket explicitly during backend sh
Дата
Msg-id E1msuMY-0000Ej-LF@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
On Windows, close the client socket explicitly during backend shutdown.

It turns out that this is necessary to keep Winsock from dropping any
not-yet-sent data, such as an error message explaining the reason for
process termination.  It's pretty weird that the implicit close done
by the kernel acts differently from an explicit close, but it's hard
to argue with experimental results.

Independently submitted by Alexander Lakhin and Lars Kanis (comments
by me, though).  Back-patch to all supported branches.

Discussion: https://postgr.es/m/90b34057-4176-7bb0-0dbb-9822a5f6425b@greiz-reinsdorf.de
Discussion: https://postgr.es/m/16678-253e48d34dc0c376@postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6051857fc953a62db318329c4ceec5f9668fd42a

Modified Files
--------------
src/backend/libpq/pqcomm.c | 27 ++++++++++++++++++++-------
1 file changed, 20 insertions(+), 7 deletions(-)


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

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: pgsql: Add TAP tests for contrib/sslinfo
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: pgsql: Add TAP tests for contrib/sslinfo