pgsql: On Windows, also call shutdown() while closing the client socket - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: On Windows, also call shutdown() while closing the client socket
Date
Msg-id E1mufIt-0007KS-8A@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
On Windows, also call shutdown() while closing the client socket.

Further experimentation shows that commit 6051857fc is not sufficient
when using (some versions of?) OpenSSL.  The reason is obscure, but
calling shutdown(socket, SD_SEND) improves matters.

Per testing by Andrew Dunstan and Alexander Lakhin.
Back-patch as before.

Discussion: https://postgr.es/m/af5e0bf3-6a61-bb97-6cba-061ddf22ff6b@dunslane.net

Branch
------
REL_13_STABLE

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

Modified Files
--------------
src/backend/libpq/pqcomm.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Update snowball
Next
From: Andrew Dunstan
Date:
Subject: pgsql: Enable settings used in TAP tests for MSVC builds