From: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
To: bfields@fieldses.org
Cc: linux-nfs@vger.kernel.org,
Gil Amsalem <gil.amsalem@primarydata.com>,
Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Subject: [PATCH] When trying to establish privileged source port number of tcp connection, use 1 instead of 0 as start port, as 0 means that the kernel will choose the port number
Date: Thu, 19 May 2016 17:30:18 +0200 [thread overview]
Message-ID: <1463671819-4933-3-git-send-email-tigran.mkrtchyan@desy.de> (raw)
In-Reply-To: <1463671819-4933-1-git-send-email-tigran.mkrtchyan@desy.de>
From: Gil Amsalem <gil.amsalem@primarydata.com>
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
---
rpc/rpc.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rpc/rpc.py b/rpc/rpc.py
index 83a0222..1a3ca38 100644
--- a/rpc/rpc.py
+++ b/rpc/rpc.py
@@ -824,7 +824,7 @@ class ConnectionHandler(object):
defer.wait()
return pipe
- def bindsocket(self, s, port=0):
+ def bindsocket(self, s, port=1):
"""Scan up through ports, looking for one we can bind to"""
# This is necessary when we need to use a 'secure' port
using = port
--
2.4.3
next prev parent reply other threads:[~2016-05-19 15:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-19 15:30 [PATCH 1/2] reduce code duplication Tigran Mkrtchyan
2016-05-19 15:30 ` [PATCH] Reduce the probability to get port collision when asking for secure port. port collision = same port allocated to 2 different clients trying to connect to the same address Tigran Mkrtchyan
2016-05-19 15:30 ` Tigran Mkrtchyan [this message]
2016-05-19 15:30 ` [PATCH 2/2] when we set size of a non file object server may return NFS4ERR_BAD_STATEID Tigran Mkrtchyan
2016-05-19 15:31 ` [PATCH 1/2] reduce code duplication Mkrtchyan, Tigran
-- strict thread matches above, loose matches on Subject: below --
2015-08-25 13:12 [PATCH] When trying to establish privileged source port number of tcp connection, use 1 instead of 0 as start port, as 0 means that the kernel will choose the port number Tigran Mkrtchyan
2015-08-25 13:13 ` Mkrtchyan, Tigran
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=1463671819-4933-3-git-send-email-tigran.mkrtchyan@desy.de \
--to=tigran.mkrtchyan@desy.de \
--cc=bfields@fieldses.org \
--cc=gil.amsalem@primarydata.com \
--cc=linux-nfs@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).