mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niklas Gustavsson <nik...@protocol7.com>
Subject Re: svn commit: r1137252 - in /mina/ftpserver/branches/1.0.x/core/src: main/java/org/apache/ftpserver/ main/java/org/apache/ftpserver/impl/ test/java/org/apache/ftpserver/clienttests/ test/java/org/apache/ftpserver/impl/
Date Sun, 19 Jun 2011 07:08:32 GMT
On Sun, Jun 19, 2011 at 8:04 AM, Emmanuel Lecharny <elecharny@apache.org> wrote:
> wouldn't it be more efficient to use new ServerSocket(0).getLocalport() to
> find a random available port ?

Yes, if any port would be okay. But in most cases, user configure a
tight range (or even multiple ranges) that are allowed. If the user
sets this range to 0, then the above will happen.


View raw message