mina-ftpserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niklas Gustavsson <nik...@protocol7.com>
Subject Re: Multiple listeners allowed on same port
Date Mon, 06 Sep 2010 12:29:50 GMT
On Mon, Sep 6, 2010 at 2:16 PM,  <Magnus.p.Andersson@tieto.com> wrote:
> Is there any known way to only allow one listener per port?

Could you please try a patch in your environment to see if this fixes
your issue?

Index: src/main/java/org/apache/ftpserver/listener/nio/NioListener.java
===================================================================
--- src/main/java/org/apache/ftpserver/listener/nio/NioListener.java	(revision
921711)
+++ src/main/java/org/apache/ftpserver/listener/nio/NioListener.java	(working
copy)
@@ -129,7 +129,7 @@
                 address = new InetSocketAddress(getPort());
             }

-            acceptor.setReuseAddress(true);
+            acceptor.setReuseAddress(false);
             acceptor.getSessionConfig().setReadBufferSize(2048);
             acceptor.getSessionConfig().setIdleTime(IdleStatus.BOTH_IDLE,
                     getIdleTimeout());


If this patch does the trick, we will make this configurable in 1.1.0.

/niklas

Mime
View raw message