On 9/13/07, Trustin Lee <[EMAIL PROTECTED]> wrote:
> On 9/11/07, HansJ <[EMAIL PROTECTED]> wrote:
<snip/>

> > 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.
>
> It's just because IoHandler is not invoked at all when the connection
> attempt fails.  IoConnector.connect() returns a ConnectFuture, so you
> can add an handler to it, or wait for the future by calling join() and
> call getSession() to get the connected session.

http://tinyurl.com/2rlsks

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to