On Mon, Sep 6, 2010 at 2:16 PM, <[email protected]> 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