pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: On Windows, also call shutdown() while closing the client socket
Date: Tue, 07 Dec 2021 18:35:03 +0000
Message-ID: <E1mufIt-0007KV-8W@gemulon.postgresql.org> (raw)

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_12_STABLE

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

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



view thread (6+ messages)

Message-ID: <E1mufIt-0007KV-8W@gemulon.postgresql.org>
Permalink:  ../E1mufIt-0007KV-8W@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1mufIt-0007KV-8W@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: On Windows, also call shutdown() while closing the client socket
  In-Reply-To: <E1mufIt-0007KV-8W@gemulon.postgresql.org>
  References: <E1mufIt-0007KV-8W@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox