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/[email protected]

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/878f38b80e91ab2727b070fe5a0962820a09a33b

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

Reply via email to