From: "David S. Miller" <davem@redhat.com>
To: "Eric Barton" <eric@bartonsoftware.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: tcp_recvmsg() in 2.4.4
Date: Fri, 8 Jun 2001 08:29:19 -0700 (PDT) [thread overview]
Message-ID: <15136.61263.7046.76298@pizda.ninka.net> (raw)
In-Reply-To: <000e01c0ef7b$8b3a8d20$0281a8c0@ebpc>
In-Reply-To: <000e01c0ef7b$8b3a8d20$0281a8c0@ebpc>
Eric Barton writes:
> When it get to if(sk->state == TCP_CLOSE), surely sk->done has already been
> tested (and the socket is locked), so -ENOTCONN could be returned
> immediately.
We sleep and drop the lock during these loops, so we need to retest
this each time we wake back up.
> Actually I'd really appreciate it if someone could explain the order of
> tests for sk->done, sk->err, sk->shutdown and sk->state...
Most of the error test ordering is specified by POSIX somewhere.
Alan would know better.
Later,
David S. Miller
davem@redhat.com
next prev parent reply other threads:[~2001-06-08 15:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-07 17:59 Eric Barton
2001-06-08 15:29 ` David S. Miller [this message]
2001-06-08 17:08 ` Alan Cox
2001-06-25 4:43 ` Is SIOCGIFCOUNT implemented under 2.4.0 Nagendra Singh Tomar
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=15136.61263.7046.76298@pizda.ninka.net \
--to=davem@redhat.com \
--cc=eric@bartonsoftware.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®