Implementation Differences Between NioClientSocketChannelFactory / OioClientSocketChannelFactory

Johnny Luong johnny.luong at trustcommerce.com
Mon Mar 22 15:27:38 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm experimenting with some a variation of the client socket reconnect
attempt provided in the examples against Netty 3.2.0.BETA1 and was
wondering if it is to be expected that the channel should be available
as part of the channelfuture or not.  In my particular case, the
endpoint is unavailable and results in a connection refused if an
attempt is made to connect to it.

In the NioClientSocketChannelFactory case, the initial connect returns a
channelfuture containing a channel.  The channel is returned and
operations like isConnected() perform as expected (either because it
hasn't completed the connect attempt (returning false) or it did and
failed (returning false))

In the OioClientSocketChannelFactory case, the initial connect returns a
channelfuture and contains no channel.  My initial thought is that it
should also return a channel but perhaps the operations should block,
e.g: isConnected()...


Thanks,
Johnny
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkunxKkACgkQg7TIS7A9iscRNwCeKozqEdiXzqWbRP9kOCDQK19Q
DW0AoJyiVp5T1uWkyfyzzdPE308lJFzL
=3W9G
-----END PGP SIGNATURE-----


More information about the netty-users mailing list