lkml.org 
[lkml]   [2004]   [Jun]   [23]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromDenis Vlasenko <>
SubjectRe: 2.6.7-rc2-mm2 udp multicast problem (sendto hangs)
DateWed, 23 Jun 2004 13:34:57 +0300
On Wednesday 23 June 2004 12:56, Martin Zwickel wrote:
> if I use MSG_DONTWAIT with sendto, I get temporarily unavailable resources
> (many!):
>
> sendto(sendfd): Resource temporarily unavailable
>
> but isn't udp supposed to not block?

Think about what will happen if you will try to spew
udp packets continuously:

while(1)
sendto(...);
They will pile up in queue and eventually it will fill up.
Then kernel may either drop excess packets silently
or return you EAGAIN.
--
vda
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [from the cache]
©2003-2009