netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kuznet@ms2.inr.ac.ru
To: jmorris@intercode.com.au (James Morris)
Cc: mtk-lists@gmx.net, netdev@oss.sgi.com
Subject: Re: shutdown() and SHUT_RD on TCP sockets - broken?
Date: Tue, 8 Jul 2003 21:03:07 +0400 (MSD)	[thread overview]
Message-ID: <200307081703.VAA13437@dub.inr.ac.ru> (raw)
In-Reply-To: <Mutt.LNX.4.44.0307090227050.9091-100000@excalibur.intercode.com.au> from "James Morris" at éÀÌ 09, 2003 02:28:12

Hello!

> blocks.  I see that this also occurs on FreeBSD 4.8, Tru64 5.1B,
> HP/UX 11 and Solaris 8.  Have I misunderstood Stevens,

Most likely, it is that rare case when Stevens forgot to check the statement.

>From viewpoint of TCP the behaviour described in Stevens' book
is highly unnatural. SHUT_RD on TCP does not make any sense.


> described here.  But, why do things happen in this way on Linux?

Actually, you could check one more thing. What does happen after freebsd 4.8
returns 0 on read()? Does it open window eventually?

As you checked, all the stacks ignore SHUT_RD, when receiving data
and queue it anyway. And when read()ing Linux and, apparently Solaris,
prefer to return this data.

Alexey

  reply	other threads:[~2003-07-08 17:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-08 16:09 shutdown() and SHUT_RD on TCP sockets - broken? mtk-lists
2003-07-08 16:28 ` James Morris
2003-07-08 17:03   ` kuznet [this message]
2003-07-08 16:55 ` Andi Kleen
  -- strict thread matches above, loose matches on Subject: below --
2003-07-09 10:11 mtk-lists
2003-07-09 10:38 ` Andi Kleen
2003-07-01 11:23 mtk-lists

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=200307081703.VAA13437@dub.inr.ac.ru \
    --to=kuznet@ms2.inr.ac.ru \
    --cc=jmorris@intercode.com.au \
    --cc=mtk-lists@gmx.net \
    --cc=netdev@oss.sgi.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).