netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Chad N. Tindel" <chad@tindel.net>
To: "David S. Miller" <davem@davemloft.net>
Cc: netdev@oss.sgi.com, linux-net@vger.kernel.org
Subject: Re: udp_recvmsg: possible bug causing infinite hang?
Date: Sat, 9 Oct 2004 21:54:32 -0400	[thread overview]
Message-ID: <20041010015432.GA38395@calma.pair.com> (raw)
In-Reply-To: <20041009184503.7fc5c105.davem@davemloft.net>

On Sat, Oct 09, 2004 at 06:45:03PM -0700, David S. Miller wrote:
> 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.

OK, so what you're saying is that the C-library has a bug because it isn't 
using a non-blocking socket when doing DNS lookups?

Thanks,

Chad

  reply	other threads:[~2004-10-10  1:54 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
2004-10-10  1:54           ` Chad N. Tindel [this message]
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=20041010015432.GA38395@calma.pair.com \
    --to=chad@tindel.net \
    --cc=davem@davemloft.net \
    --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).