]> git.ipfire.org Git - thirdparty/postgresql.git/commit
On Windows, also call shutdown() while closing the client socket.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 7 Dec 2021 18:34:06 +0000 (13:34 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 7 Dec 2021 18:34:28 +0000 (13:34 -0500)
commit23bc57d564b2dedb8b1d823a4fc71774afd9ff94
treed53722f7c4a9b4e5880c1d16744a906f13515386
parent7b0643c77b464bd00eb6b63f6538057e024c775e
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
src/backend/libpq/pqcomm.c