Client reconnecting question

"Trustin Lee (이희승)" trustin at gmail.com
Wed Apr 28 00:06:47 EDT 2010


Hi Sergey,

Sergey S wrote:
> Hi
> I've seen uptime client example, but still have some question:
> Will be new pipeline created if handler invokes bootstrap.connect()?

Yes, a new pipeline is created for a new channel.

> Is it possible to re-use pipeline for new connection in this case?

No.

> What is a best strategy to release resources of disconnected channel's
> pipeline (if it is impossible to reuse it)?

You could release the resources in your handler if disposal doesn't take
much time.  Otherwise you will have to release them in a different
thread.  It really depends in my opinion.

HTH,
Trustin

-- 
what we call human nature in actuality is human habit
http://gleamynode.net/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20100428/ceefbd74/attachment-0001.bin 


More information about the netty-users mailing list