Bug in Secure Chat example in documentation?

EDevil teste at cabine.org
Tue Oct 11 14:14:14 EDT 2011


Hello.

I've noticed that when the client connects in the Secure Chat example it
does not wait for the SSL handshake to complete:

http://docs.jboss.org/netty/3.2/xref/org/jboss/netty/example/securechat/SecureChatClientHandler.html#59

It does not store the ChannelFuture returned by handshake(). Meanwhile, in
the SecureChatClient class, it waits on the Future returned by connect and
potentially can send data while the SSL handshake is occurring, right?

http://docs.jboss.org/netty/3.2/xref/org/jboss/netty/example/securechat/SecureChatClient.html#67

Shouldn't it do like SecureChatServerHandler, which waits for the handshake
to complete before servicing the client?

http://docs.jboss.org/netty/3.2/xref/org/jboss/netty/example/securechat/SecureChatServerHandler.html#69

I'm a newcomer to Netty, maybe I'm missing something.

Best regards,
André

--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Bug-in-Secure-Chat-example-in-documentation-tp6882055p6882055.html
Sent from the Netty User Group mailing list archive at Nabble.com.



More information about the netty-users mailing list