Please attach the full thread dump.

Trustin


On 1/20/07, Akbar Munir <[EMAIL PROTECTED]> wrote:


I have noticed that in my program, even when MINA is not able to connect
to
remote peer, the program does not exit. It appears that there are some
open
resources which are required to be closed explicitly. The code is at the
end
of this email. The program prints "false", as no server is running, but
after that does not exits. Any idea which resources are still open? I have
tried this with both Java 5 and Java 6 and behavior is the same.

Thanks,
Akbar.

--------------------------------- START --------------------------
   public static void main(String[] a_strArrayOfArguments)
   {
       ConnectFuture oConnectFuture = new SocketConnector().connect(new
InetSocketAddress("localhost", 1234), new IoHandlerAdapter());

       oConnectFuture.join();

       System.out.println("Result = " + oConnectFuture.isConnected());
   }
------------------------------- END
-----------------------------------------
--
View this message in context:
http://www.nabble.com/Program-does-not-exit-possible-due-to-open-resources-tf3045115.html#a8464526
Sent from the mina dev mailing list archive at Nabble.com.




--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6

Reply via email to