Brent Casavant <[EMAIL PROTECTED]> 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.
The POSIX text for MSG_WAITALL actually says that when used in conjunction with MSG_PEEK it may not return the full data. Having said that, I do agree that having TCP and AF_UNIX behave in the same way is a plus. However, if you really want this to happen it would help if you had attached a patch :) Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html