From: Phillip Susi <psusi@ubuntu.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Subject: Re: bind() should not return -EADDRINUSE
Date: Thu, 11 Dec 2014 15:17:12 -0500 [thread overview]
Message-ID: <5489FBC8.4070706@ubuntu.com> (raw)
In-Reply-To: <20141211.151302.686998496408277043.davem@davemloft.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12/11/2014 3:13 PM, David Miller wrote:
>
> But you don't know ahead of time what the processes are going to
> do, that's the problem.
>
> You cannot leave the port available and pretend to another process
> that he will be able to use it.
>
> Port allocation failures must be signalled at bind() time.
Says who? The man pages for both listen() and connect() say they can
return EADDRINUSE.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
iQEcBAEBAgAGBQJUifvIAAoJENRVrw2cjl5R+r8H/jb84r9KUgMQcfFAPB4aYQKt
ou188Bpv6aa1AB1yt99il8bulvXMO5m0NuLG8NcYIDnt0zo1xaVrbxelNHIkx0XQ
Gj67Ozc+yMOQ6izHUPMNgB9lI3q/GBhI6dt5/5NnIeAx4VzCQIhT1nKT6LRo4J6z
k6R7vyXrm9M7X0A3hh7Dpapv/JWuzZfZYOZP+JQP/BSLorEX0+pZHoqOl0Cy+bwo
rp/oaAAaQe+cX95dplXLVmXoh6JxjBTkXqWEEHTnNNbz3LsY+e7aokz3Pl9kQw3M
hn1q9PSC+JMhxCI3AOgukIwlK3ps7y78PiQHxds/K/ZNVzaaeJAY+FryppUijPk=
=/oDW
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2014-12-11 20:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-11 19:19 bind() should not return -EADDRINUSE Phillip Susi
2014-12-11 19:23 ` David Miller
2014-12-11 19:50 ` Phillip Susi
2014-12-11 20:13 ` David Miller
2014-12-11 20:17 ` Phillip Susi [this message]
2014-12-11 20:18 ` David Miller
2014-12-11 20:23 ` Phillip Susi
2014-12-11 20:25 ` David Miller
2014-12-11 21:34 ` Phillip Susi
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=5489FBC8.4070706@ubuntu.com \
--to=psusi@ubuntu.com \
--cc=davem@davemloft.net \
--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 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).