Re: BUG #16678: The ecpg connect/test5 test sometimes fails on Windows
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: exclusion@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Date: 2020-10-19T19:18:56Z
Lists: pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes: > It seems that on Windows the postmaster process can close a connection > before slow client receives a FATAL message. Yeah, we've come to that conclusion before, see for instance https://www.postgresql.org/message-id/flat/E1iaD8h-0004us-K9%40gemulon.postgresql.org I haven't heard any non-unpleasant ideas for working around it. One thought that might or might not improve matters is for the backend to explicitly close() the socket before exiting. We intentionally don't do that (cf 268313a95), but maybe doing it on Windows would be better than the existing issue --- assuming it fixes the issue, that is. 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