mina-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r782450 - /mina/ftpserver/trunk/core/src/main/java/org/apache/ftpserver/impl/PassivePorts.java
Date Sun, 07 Jun 2009 20:11:38 GMT
Author: ngn
Date: Sun Jun  7 20:11:38 2009
New Revision: 782450

URL: http://svn.apache.org/viewvc?rev=782450&view=rev
Log:
Adding some comments to the new code in FTPSERVER-302

Modified:
    mina/ftpserver/trunk/core/src/main/java/org/apache/ftpserver/impl/PassivePorts.java

Modified: mina/ftpserver/trunk/core/src/main/java/org/apache/ftpserver/impl/PassivePorts.java
URL: http://svn.apache.org/viewvc/mina/ftpserver/trunk/core/src/main/java/org/apache/ftpserver/impl/PassivePorts.java?rev=782450&r1=782449&r2=782450&view=diff
==============================================================================
--- mina/ftpserver/trunk/core/src/main/java/org/apache/ftpserver/impl/PassivePorts.java (original)
+++ mina/ftpserver/trunk/core/src/main/java/org/apache/ftpserver/impl/PassivePorts.java Sun
Jun  7 20:11:38 2009
@@ -166,6 +166,9 @@
         this.checkIfBound = checkIfBound;
     }
 
+    /**
+     * Checks that the port of not bound by another application
+     */
     private boolean checkPortUnbound(int port) {
         // is this check disabled?
         if(!checkIfBound) {
@@ -183,7 +186,7 @@
             ss.setReuseAddress(true);
             return true;
         } catch (IOException e) {
-            // port probably in used, check next
+            // port probably in use, check next
             return false;
         } finally {
             if(ss != null) {



Mime
View raw message