Re: MSVC SSL test failure - Mailing list pgsql-hackers

From Alexander Lakhin
Subject Re: MSVC SSL test failure
Date
Msg-id 8a96ed3f-4e6e-6867-0063-b7723e6c5dc6@gmail.com
Whole thread Raw
In response to Re: MSVC SSL test failure  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: MSVC SSL test failure  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Hello Andrew,
06.12.2021 17:56, Andrew Dunstan wrote:
> Yeah, quite annoying, especially because only some combinations of MSVC
> runtime / openssl version seem to trigger the problem.
>
>
> Adding a shutdown() before the closesocket() also fixes the issue.
>
Can you confirm that adding shutdown(MyProcPort->sock, SD_BOTH) fixes
the issue for many test runs?
I don't see the stable test passing here.
Without shutdown() the test failed on iterations 1, 5, 4, but with
shutdown() it failed too, on iterations 3, 1, 4.
Without close() and shutdown() the test passes 20 iterations.
(I'm still researching how openssl affects the shutdown sequence.)

Best regards,
Alexander



pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: pg_get_publication_tables() output duplicate relid
Next
From: Bharath Rupireddy
Date:
Subject: Re: should we document an example to set multiple libraries in shared_preload_libraries?