[PATCH] Cygwin: connect: set connect state for DGRAM sockets

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Apr 26 09:28:39 GMT 2021


On Apr 23 14:51, Ken Brown wrote:
> When connect is called on a DGRAM socket, the call to Winsock's
> connect can immediately return successfully rather than failing with
> WSAEWOULDBLOCK.  Set the connect state to "connected" in this case.
> 
> Previously the connect state remained "connect_pending" after the
> successful connection.
> ---
>  winsup/cygwin/fhandler_socket_inet.cc  | 19 +++++++++++--------
>  winsup/cygwin/fhandler_socket_local.cc | 19 +++++++++++--------
>  2 files changed, 22 insertions(+), 16 deletions(-)

ACK.  Please push (a release msg entry would be nice, too).


Thanks,
Corinna


More information about the Cygwin-patches mailing list