From: Alan Cox <alan@redhat.com>
To: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Cc: Ulrich Drepper <drepper@redhat.com>,
netdev <netdev@vger.kernel.org>, Alan Cox <alan@redhat.com>
Subject: Re: bind and O_NONBLOCK
Date: Sat, 22 Sep 2007 13:35:56 -0400 [thread overview]
Message-ID: <20070922173556.GA26346@devserv.devel.redhat.com> (raw)
In-Reply-To: <20070922161414.GA29637@2ka.mipt.ru>
On Sat, Sep 22, 2007 at 08:14:15PM +0400, Evgeniy Polyakov wrote:
> of operations. There are four ways where bind can fail:
>
> 1. unsufficient rights - nothing can help here
> 2. there is no memory - async binding can not help here too, since it
> some memory just has to be allocated to save async request
> somewhere.
> 3. socket is locked.
> 4. addres is being bound is in use.
For most protocols yes - but not all. For things like IP specifying O_NDELAY
is meaningless on a bind it will always complete on the spot as you say
next prev parent reply other threads:[~2007-09-22 17:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-21 5:59 bind and O_NONBLOCK Ulrich Drepper
2007-09-22 16:14 ` Evgeniy Polyakov
2007-09-22 16:21 ` Ulrich Drepper
2007-09-22 16:59 ` Evgeniy Polyakov
2007-09-22 17:11 ` Ulrich Drepper
2007-09-22 17:19 ` Evgeniy Polyakov
2007-09-23 5:58 ` David Miller
2007-09-23 20:43 ` Alan Cox
2007-09-22 17:35 ` Alan Cox [this message]
2007-09-22 17:40 ` Evgeniy Polyakov
2007-09-28 22:56 ` David Miller
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=20070922173556.GA26346@devserv.devel.redhat.com \
--to=alan@redhat.com \
--cc=drepper@redhat.com \
--cc=johnpol@2ka.mipt.ru \
--cc=netdev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.