Thread (5 messages) 5 messages, 3 authors, 2004-12-01

Re: [PATCH] UDP select handling of bad checksums.

From: Stephen Hemminger <hidden>
Date: 2004-11-03 21:20:46

On Tue, 2 Nov 2004 16:52:53 -0800
Mitchell Blank Jr [off-list ref] wrote:
Stephen Hemminger wrote:
quoted
This patch addresses the issue of blocking usage of select() by UDP applications.
I'm glad to see someone actually putting some code forward in this debate...
Looks pretty good, but can't you implement this a bit cleaner by just
wrapping datagram_poll?  Something like:
But the wrapper was bigger and uglier than just doing it.
Especially since UDP doesn't need to connection oriented checks.
So the fast path code in UDP is actually faster than datagram_poll.
That way you duplicate a lot less code.  It does slightly more work but
only in the broken !O_NONBLOCK case - the fast path is just as quick.

-Mitch
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help