From: "David S. Miller" <davem@davemloft.net>
To: "Chad N. Tindel" <ctindel@falcon.csc.calpoly.edu>
Cc: netdev@oss.sgi.com, linux-net@vger.kernel.org
Subject: Re: udp_recvmsg: possible bug causing infinite hang?
Date: Sat, 9 Oct 2004 18:45:03 -0700 [thread overview]
Message-ID: <20041009184503.7fc5c105.davem@davemloft.net> (raw)
In-Reply-To: <Pine.GSO.4.44.0410091824350.14026-100000@falcon.csc.calpoly.edu>
On Sat, 9 Oct 2004 18:38:58 -0700 (PDT)
"Chad N. Tindel" <ctindel@falcon.csc.calpoly.edu> wrote:
> User space code sends a datagram on a blocking socket, and then calls
> select() or poll() to wait for the reply.
If you wish the socket not to block, mark the file descriptor
as non-blocking or pass in the appropriate MSG_* flag into
recvmsg().
Select() returning that a filedescriptor is readable does not
guarentee that a blocking socket will not block in the ead
call.
This behavior has been in the Linux kernel for an enourmous
amount of them, the change you are noticing going from EL 3 update
2 to update 3 is that previously we were returning -EAGAIN to
blocking sockets, instead we are properly blocking to wait for
another packet.
There is an enormous and long thread about this topic on the
linux-kernel list, please read there before we duplicate such
a long and tiring thread here.
next prev parent reply other threads:[~2004-10-10 1:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E791C176A6139242A988ABA8B3D9B38A01085638@hasmsx403.iil.intel.com>
2003-03-27 13:32 ` BUG or not? GFP_KERNEL with interrupts disabled shmulik.hen
2003-03-27 13:43 ` David S. Miller
2003-03-27 14:11 ` Trond Myklebust
2003-03-27 14:12 ` David S. Miller
2003-03-27 17:22 ` Linus Torvalds
2003-03-27 17:55 ` David S. Miller
2003-03-27 18:04 ` Linus Torvalds
2003-03-27 18:07 ` David S. Miller
2004-10-10 1:38 ` udp_recvmsg: possible bug causing infinite hang? Chad N. Tindel
2004-10-10 1:45 ` David S. Miller [this message]
2004-10-10 1:54 ` Chad N. Tindel
2004-10-12 5:32 ` Nagendra Singh Tomar
2004-10-12 5:32 ` Chad N. Tindel
2004-10-12 6:08 ` Nagendra Singh Tomar
2004-10-12 8:56 ` Henrik Nordstrom
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=20041009184503.7fc5c105.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=ctindel@falcon.csc.calpoly.edu \
--cc=linux-net@vger.kernel.org \
--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).