On Fri, Jan 15, 2010 at 2:27 PM, Emmanuel Lecharny <[email protected]>wrote:
> Yongxing Wang a écrit : > > Yes.... that's exactly what I have experienced. It hangs if you call >> dispose inside of the operationComplete. I kicked off another thread inside >> just to do the dispose. Any other good ways? >> >> > I have added some info in > https://issues.apache.org/jira/browse/DIRMINA-755. > > The real problem is that calling dispose() in the listener is not > necessarilly a good idea, I'm not calling it inside the listener. I've added the timeout: future.awaitUninterruptibly(5, TimeUnit.SECONDS); And threw this exception: java.lang.IllegalStateException: DEAD LOCK: IoFuture.await() was invoked from an I/O processor thread. Please use IoFutureListener or configure a proper thread model alternatively. Thanks. -- Leandro Casadei QB9 Programmer www.qb9.net
