From: Olaf Kirch <okir@suse.de>
To: "Peter Åstrand" <astrand@cendio.se>
Cc: nfs@lists.sourceforge.net
Subject: Re: [PATCH] xprt sharing (was Re: xprt_bindresvport)
Date: Thu, 9 Dec 2004 12:14:10 +0100 [thread overview]
Message-ID: <20041209111410.GB15055@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.44.0412090954400.23728-100000@maggie.lkpg.cendio.se>
On Thu, Dec 09, 2004 at 09:54:58AM +0100, Peter =C5strand wrote:
> > The only thing to worry about now is any talking to the portmapper or
> > mountd from userspace using tcp, which will put the reserved ports in
> > TIME_WAIT state. This can limit the 'speed' at which we mount many
> > mounts.
>=20
> How about using SO_REUSEADDR?
You cannot use it safely on active (i.e. client) sockets. Consider this
Application A:
set SO_REUSEADDR
bind to port 1234
connect to server foo, port 2049
Application B:
set SO_REUSEADDR
bind to port 1234 (succeeds because of REUSEADDR)
connect to server foo, port 2049: fails with EADDRNOTAVAIL,
because there already is a connection from
client:1234 -> foo:2049
Olaf
--=20
Olaf Kirch | Things that make Monday morning interesting, #2:
okir@suse.de | "We have 8,000 NFS mount points, why do we keep
---------------+ running out of privileged ports?"
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next prev parent reply other threads:[~2004-12-09 11:14 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-09 8:54 [PATCH] xprt sharing (was Re: xprt_bindresvport) Peter Åstrand
2004-12-09 11:14 ` Olaf Kirch [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-12-09 14:03 Lever, Charles
2004-12-08 22:00 Lever, Charles
2004-12-08 19:08 Lever, Charles
2004-12-08 21:58 ` Mike Waychison
2004-12-09 11:22 ` Olaf Kirch
2004-12-09 13:33 ` Trond Myklebust
2004-12-09 13:41 ` Olaf Kirch
2004-12-08 14:33 xprt_bindresvport Lever, Charles
2004-12-08 18:17 ` [PATCH] xprt sharing (was Re: xprt_bindresvport) Mike Waychison
2004-12-09 11:31 ` Olaf Kirch
2004-12-09 13:36 ` Trond Myklebust
2004-12-09 13:44 ` Olaf Kirch
2004-12-09 16:20 ` Trond Myklebust
2004-12-09 19:34 ` Dan Stromberg
2004-12-09 21:33 ` Trond Myklebust
2004-12-09 22:29 ` Dan Stromberg
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=20041209111410.GB15055@suse.de \
--to=okir@suse.de \
--cc=astrand@cendio.se \
--cc=nfs@lists.sourceforge.net \
/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