]> 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:24 +0000 (13:34 -0500)
commita9e572c6d5761e8f9b726ba2b9d63a01186994f1
tree519de956ad40df762141b4eab37ddab87358b6d0
parent386d97781d1779ca76958bff193749082279182f
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