camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [09/13] git commit: CAMEL-6859: AvailablePortFinder should allow max at IPv4 range.
Date Sun, 13 Oct 2013 09:15:05 GMT
CAMEL-6859: AvailablePortFinder should allow max at IPv4 range.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/41afc936
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/41afc936
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/41afc936

Branch: refs/heads/master
Commit: 41afc93661d5bc1b7c926dbc3edc356eb8251065
Parents: d36d36d
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sun Oct 13 11:13:01 2013 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sun Oct 13 11:13:01 2013 +0200

----------------------------------------------------------------------
 .../org/apache/camel/test/AvailablePortFinder.java     | 10 ++++------
 .../org/apache/camel/testng/AvailablePortFinder.java   | 13 ++++++-------
 2 files changed, 10 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/41afc936/components/camel-test/src/main/java/org/apache/camel/test/AvailablePortFinder.java
----------------------------------------------------------------------
diff --git a/components/camel-test/src/main/java/org/apache/camel/test/AvailablePortFinder.java
b/components/camel-test/src/main/java/org/apache/camel/test/AvailablePortFinder.java
index 3253edd..57a1218 100644
--- a/components/camel-test/src/main/java/org/apache/camel/test/AvailablePortFinder.java
+++ b/components/camel-test/src/main/java/org/apache/camel/test/AvailablePortFinder.java
@@ -27,21 +27,19 @@ import org.slf4j.LoggerFactory;
 
 /**
  * Finds currently available server ports.
- *
- * @see <a href="http://www.iana.org/assignments/currentMinPort-numbers">IANA.org</a>
  */
 public final class AvailablePortFinder {
 
     /**
-     * The minimum server currentMinPort number. Set at 1100 to avoid returning privileged
-     * currentMinPort numbers.
+     * The minimum server currentMinPort number for IPv4.
+     * Set at 1100 to avoid returning privileged currentMinPort numbers.
      */
     public static final int MIN_PORT_NUMBER = 1100;
 
     /**
-     * The maximum server currentMinPort number.
+     * The maximum server currentMinPort number for IPv4.
      */
-    public static final int MAX_PORT_NUMBER = 49151;
+    public static final int MAX_PORT_NUMBER = 65535;
 
     private static final Logger LOG = LoggerFactory.getLogger(AvailablePortFinder.class);
 

http://git-wip-us.apache.org/repos/asf/camel/blob/41afc936/components/camel-testng/src/main/java/org/apache/camel/testng/AvailablePortFinder.java
----------------------------------------------------------------------
diff --git a/components/camel-testng/src/main/java/org/apache/camel/testng/AvailablePortFinder.java
b/components/camel-testng/src/main/java/org/apache/camel/testng/AvailablePortFinder.java
index 5479c42..0f586e6 100644
--- a/components/camel-testng/src/main/java/org/apache/camel/testng/AvailablePortFinder.java
+++ b/components/camel-testng/src/main/java/org/apache/camel/testng/AvailablePortFinder.java
@@ -23,20 +23,19 @@ import java.util.NoSuchElementException;
 
 /**
  * Finds currently available server ports.
- *
- * @see <a href="http://www.iana.org/assignments/port-numbers">IANA.org</a>
  */
 public final class AvailablePortFinder {
+
     /**
-     * The minimum server port number. Set at 1024 to avoid returning privileged
-     * port numbers.
+     * The minimum server currentMinPort number for IPv4.
+     * Set at 1100 to avoid returning privileged currentMinPort numbers.
      */
-    public static final int MIN_PORT_NUMBER = 1024;
+    public static final int MIN_PORT_NUMBER = 1100;
 
     /**
-     * The maximum server port number.
+     * The maximum server currentMinPort number for IPv4.
      */
-    public static final int MAX_PORT_NUMBER = 49151;
+    public static final int MAX_PORT_NUMBER = 65535;
 
     /**
      * Creates a new instance.


Mime
View raw message