Paul Jakma wrote:

The deadlock: Such apps are terminally buggy, surely? An app refusing to read data indefinitely based on conditions of possible future data should expect an indefinite lack of progress (no?).


Hence my comment about this always being a possibility. But this is
a common technique that is perfectly safe in any other situation.
While the normal paradigm is to either block or use poll, the fact
that we provide MSG_PEEK or FIONREAD in the first place legitimizes
the technique. Witness the number of customer complaints we got when
the delayed copyin/out made MSG_PEEK give incorrect results.

--
blu

"The genius of you Americans is that you never make clear-cut stupid
 moves, only complicated stupid moves which make us wonder at the
 possibility that there may be something to them which we are missing."
 - Gamal Abdel Nasser
----------------------------------------------------------------------
Brian Utterback - Solaris RPE, Sun Microsystems, Inc.
Ph:877-259-7345, Em:brian.utterback-at-ess-you-enn-dot-kom
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to