[Asterisk-Dev] Re: EAGAIN rtp.c

Wolfgang S. Rupprecht list+asterisk-dev at lists.wsrcc.com
Mon Jul 12 23:00:05 MST 2004

cloos at jhcloos.com (James H. Cloos Jr.) writes:
> >>>>> "Wolfgang" == Wolfgang S Rupprecht <list+asterisk-dev at lists.wsrcc.com> writes:
> Wolfgang> Under unix and bsd EAGAIN simply means someone set the
> Wolfgang> socket to non-blocking and proceeded to read the socket
> Wolfgang> before any data arrived.
> As kram told me: read the linux's udp.c.  It returns an EAGAIN when
> there is a checksum error.

If EAGAIN means both "there is no data available" and "your data got
mangled" how is one supposed to decide if there was an error or not?

I would think that the code would have to assume the best and not
scroll a line of warning every time a read returned empty-handed.  As
it is now, there are times I get hundreds of these warnings (under
openbsd) when I make sip calls to a busy number and it rolls over to

Wolfgang S. Rupprecht                http://www.wsrcc.com/wolfgang/
openbsd amd64 http://www.wsrcc.com/wolfgang/ftp/asterisk-openbsd35.patch

More information about the asterisk-dev mailing list