LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Herbert Xu <herbert@gondor.apana.org.au>
To: Brent Casavant <bcasavan@sgi.com>
Cc: penguin-kernel@i-love.sakura.ne.jp, netdev@vger.kernel.org,
davem@davemloft.net, linux-kernel@vger.kernel.org
Subject: Re: AF_UNIX MSG_PEEK bug?
Date: Thu, 10 Jan 2008 11:01:53 +1100 [thread overview]
Message-ID: <E1JCkrp-0000vX-00@gondolin.me.apana.org.au> (raw)
In-Reply-To: <alpine.BSF.1.00.0801091201180.35527@pkunk.americas.sgi.com>
Brent Casavant <bcasavan@sgi.com> 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~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
next prev parent reply other threads:[~2008-01-10 0:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-08 22:27 Brent Casavant
2008-01-08 22:40 ` Rick Jones
2008-01-08 22:53 ` Tom Spink
2008-01-08 23:18 ` Brent Casavant
2008-01-08 23:39 ` Tom Spink
2008-01-08 23:46 ` Tom Spink
2008-01-09 0:08 ` Brent Casavant
2008-01-08 23:20 ` Brent Casavant
2008-01-09 11:04 ` Tetsuo Handa
2008-01-09 18:01 ` Brent Casavant
2008-01-10 0:01 ` Herbert Xu [this message]
2008-01-10 1:19 ` Brent Casavant
2008-01-10 2:50 ` Brent Casavant
2008-01-10 22:35 ` Brent Casavant
2008-01-10 22:36 ` Alan Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1JCkrp-0000vX-00@gondolin.me.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=bcasavan@sgi.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=penguin-kernel@i-love.sakura.ne.jp \
--subject='Re: AF_UNIX MSG_PEEK bug?' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).