Re: Windows: Wrong error message at connection termination
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Lars Kanis <lars@greiz-reinsdorf.de>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2021-11-21T21:42:46Z
Lists: pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes: > Hmm, maybe it's still not enough. Now that I have coffee, I thought > about the well known failure of idle_in_transaction_timeout to report > errors on Windows[1]. Yeah, I think that may well be a manifestation of the same problem: once the backend exits, Winsock issues RST which prevents the client from reading the queued data. We had been analyzing that under the assumption that Windows obeys the TCP RFCs ... but having now been disabused of that optimism, it seems to match up pretty well. It'd be useful to check if Lars' patch cures that symptom. regards, tom lane
Commits
-
On Windows, close the client socket explicitly during backend shutdown.
- 00cd81723cd0 10.20 landed
- a87c8c3edd7f 11.15 landed
- 3e644dcca1e9 12.10 landed
- 6251f86241ac 13.6 landed
- 4cd2928543c1 14.2 landed
- 6051857fc953 15.0 landed