Re: MSVC SSL test failure
Alexander Law <exclusion@gmail.com>
From: Alexander Lakhin <exclusion@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Dunstan <andrew@dunslane.net>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Lars Kanis <lars@greiz-reinsdorf.de>
Date: 2021-12-07T17:59:59Z
Lists: pgsql-hackers
Hello Tom, 07.12.2021 19:25, Tom Lane wrote: > Hmm. I wonder whether using SD_BOTH behaves any differently. With shutdown(MyProcPort->sock, SD_BOTH) the test failed for me on iterations 1, 2, 3, 16 (just as without shutdown() at all). So shutdown with the SD_SEND flag definitely behaves much better (I've seen over 200 successful iterations). Best regards, Alexander
Commits
-
On Windows, also call shutdown() while closing the client socket.
- 878f38b80e91 10.20 landed
- 23bc57d564b2 11.15 landed
- a9e572c6d576 12.10 landed
- a8a983e8299a 13.6 landed
- ea5ecdadf6ea 14.2 landed
- ed52c3707bcf 15.0 landed
-
On Windows, close the client socket explicitly during backend shutdown.
- 6051857fc953 15.0 cited