This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: [PATCH] fhandler_socket::recvmsg [WAS: Anyone interested in checking out dgram socket problem (Conrad you still here?)]
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-patches at cygwin dot com
- Date: Tue, 5 Nov 2002 11:52:25 -0500
- Subject: Re: [PATCH] fhandler_socket::recvmsg [WAS: Anyone interested in checking out dgram socket problem (Conrad you still here?)]
- References: <20021105050917.GA19118@redhat.com> <Pine.WNT.4.44.0211051101530.322-200000@algeria.intern.net>
- Reply-to: cygwin-patches at cygwin dot com
On Tue, Nov 05, 2002 at 11:19:35AM +0100, Thomas Pfaff wrote:
>On Tue, 5 Nov 2002, Christopher Faylor wrote:
>>There is a thread in cygwin at cygwin entitled:
>>
>>"1.3.13-2 & 1.3.14-1 problem on read() from dgram socket"
>>
>>Is anyone willing to debug the problem and, if it is a cygwin problem,
>>provide a fix?
>>
>>http://cygwin.com/ml/cygwin/2002-10/msg01974.html
>
>It seems that the fromlen in WSARecvFrom must be NULL if from is NULL
>and not a pointer to 0. Actually msg->msg_name is NULL and
>msg->msg_namelen is 0 which will result in WSAEFAULT.
>
>Thomas
>
>2002-11-05 Thomas Pfaff <tpfaff@gmx.net>
>
>* fhandler_socket.cc (fhandler_socket::recvmsg): If from == NULL call
>WSARecvFrom with fromlen = NULL.
Thank you Thomas! I'm applying your patch.
I really really appreciate your looking into this.
cgf