Leandro Casadei a écrit :
Update: I've solved it :DI had to do this workaround: new Thread(new ConnectorDisposer(connector, future), "ConnectorDisposer").start(); The run() method on ConnectorDisposer class do: future.awaitUninterruptibly(5, TimeUnit.SECONDS); connector.dispose(); And there is no more file descriptors leaks :) Hopes it helps someone else.
Cool !!!I'm still trying to get the dispose() method to be called from inside the listener, which should also solve your problem.
