You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by ng...@apache.org on 2009/06/07 22:10:49 UTC

svn commit: r782449 - /mina/ftpserver/branches/1.0.x/core/src/main/java/org/apache/ftpserver/impl/PassivePorts.java

Author: ngn
Date: Sun Jun  7 20:10:49 2009
New Revision: 782449

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

Modified:
    mina/ftpserver/branches/1.0.x/core/src/main/java/org/apache/ftpserver/impl/PassivePorts.java

Modified: mina/ftpserver/branches/1.0.x/core/src/main/java/org/apache/ftpserver/impl/PassivePorts.java
URL: http://svn.apache.org/viewvc/mina/ftpserver/branches/1.0.x/core/src/main/java/org/apache/ftpserver/impl/PassivePorts.java?rev=782449&r1=782448&r2=782449&view=diff
==============================================================================
--- mina/ftpserver/branches/1.0.x/core/src/main/java/org/apache/ftpserver/impl/PassivePorts.java (original)
+++ mina/ftpserver/branches/1.0.x/core/src/main/java/org/apache/ftpserver/impl/PassivePorts.java Sun Jun  7 20:10:49 2009
@@ -165,6 +165,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) {
@@ -182,7 +185,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) {