Re: Windows: Wrong error message at connection termination

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Windows: Wrong error message at connection termination
Дата
Msg-id 2779728.1637186497@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Windows: Wrong error message at connection termination  (Lars Kanis <lars@greiz-reinsdorf.de>)
Список pgsql-hackers
Lars Kanis <lars@greiz-reinsdorf.de> writes:
> Explicit closing the socket before process termination leads to a 
> graceful close even on Windows. That is done by the attached patch. I 
> think delivering the correct error message to the user is much more 
> important that closing the process in sync with the socket.

Per the comment immediately above this, it's intentional that we don't
close the socket.  I'm not really convinced that this is an improvement.

Can we get anywhere by using shutdown(2) instead of close(), ie do a
half-close?  I have no idea what Windows thinks the semantics of that
are, but it might be worth trying.

            regards, tom lane



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: xlog.c: removing ReadRecPtr and EndRecPtr
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: Windows: Wrong error message at connection termination