You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Jeff Trawick <tr...@bellsouth.net> on 2001/03/31 15:27:01 UTC
Re: cvs commit: apr/network_io/unix sendrecv.c sockets.c
trawick@apache.org writes:
> trawick 01/03/31 05:25:46
>
> Modified: include/arch/unix networkio.h
> network_io/unix sendrecv.c sockets.c
> Log:
> apr_recvfrom() should only return APR_EOF if recvfrom() returned
> zero *AND* this is a stream socket.
>
> rc zero from a datagram socket just means that somebody sent you
> a zero-byte datagram.
>
> Remove the minimal parm checking from recvfrom()... better to
> segfault as with most of the rest of APR.
The same basic change is needed for other apr_recvfrom()
implementation(s)...
--
Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site:
http://www.geocities.com/SiliconValley/Park/9289/
Born in Roswell... married an alien...