On Windows, also call shutdown() while closing the client socket.
authorTom Lane
Tue, 7 Dec 2021 18:34:06 +0000 (13:34 -0500)
committerTom Lane
Tue, 7 Dec 2021 18:34:19 +0000 (13:34 -0500)
commita8a983e8299ae7e63b18b3965ca1f55e18f84a06
tree0cd03f4261d5d8b6ed1be548427a68717372f955
parente2ebc90eb8090def69b2d3aa86f6caf3a8026f6b
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