Hello

Using the MINA NetCat as the example.
I'm using MINA 1.1.2.

I'm struggling to understand how MINA tcp clients detects connects errors,
i.e. when an initial tcp connection cannot be made.

I would like to separate into different scenarios:

1. Endpoint specified by hostname, port#. Problem:  hostname cannot be
resolved.

I know the answer myself to this one: It will result in an OS error that
will be thrown as an exception.

2. Endpoint specified by ip, port#. Problem:  ip address does not exist on
network.


3. Endpoint specified by hostname or ip, port#. Problem: host reachable, but
no listener on that port.

I've tested this scenario. Nothing happens, no callback, nothing, the NetCat
application just ends after approximately 1 minute. ConnectTimeout is set to
15 secs.


4. Endpoint specified by hostname or ip, port#. Problem: host unreachable.




In another posting I've read that the ConnectTimeout only has relevance when
there is a listener on the host/port destination. Can't really understand
what it is good for then. 

Someone able to help me understand this. 

thanks

-- 
View this message in context: 
http://www.nabble.com/tcp-client---how-to-detect-connect-problems-tf4422882s16868.html#a12615648
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

Reply via email to