Re: AF_UNIX MSG_PEEK bug?

From: Brent Casavant
Date: Wed Jan 09 2008 - 13:02:07 EST


On Wed, 9 Jan 2008, Tetsuo Handa wrote:

> Did you try MSG_WAITALL flag? See "man 2 recv".
> A TCP socket handles data in bytes.
> You cannot complain if the amount received by recv() is smaller than expected
> unless you use MSG_WAITALL flag.

Yes. It made no difference, as noted in the comments in the
provided test program.

Brent

--
Brent Casavant All music is folk music. I ain't
bcasavan@xxxxxxx never heard a horse sing a song.
Silicon Graphics, Inc. -- Louis Armstrong
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/