Subject: Re: bug#23615: 25.1.50; Which platforms can safely use getsockopt(,,SO_ERROR,,)?

From: Ken Brown <[email-masked]>
Date: Wed, 25 May 2016 15:21:56 -0400

On 5/25/2016 12:24 PM, Eli Zaretskii wrote:
> Perhaps you or someone could write a small test program, and then
> people here could run it various platforms and provide feedback.

Test program attached.  It simulates the situation of bug 23606 (before 
the bug was fixed).  Here's what happens on Cygwin:

$ gcc -o socket_test socket_test.c

$ ./socket_test.exe
Server listening on port 50176.
Attempting client connection...failure: Connection refused.

Ken