Add a ChannelFutureListener to the ChannelFuture returned by connect and handle 
it there.



> On 14. May 2019, at 09:31, Priyanka Perera <[email protected]> wrote:
> 
> Hi all,
> 
> How to correctly catch the ConnectTimeoutException during a client connection 
> ?
> 
> Netty 4.1.30.Final.
> 
> Thanks
> Priyanka
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Netty discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/netty/CAJt14FNKGwe-0NqLzHRUpaG8TzsO-JogmOiCWKYz9kYX0pkdDQ%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/netty/CAJt14FNKGwe-0NqLzHRUpaG8TzsO-JogmOiCWKYz9kYX0pkdDQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/netty/6340295E-65F3-416D-846B-57D7EE8E7889%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to