Skip to main content

programming

2013


Netty: How to Initiate SSL Handshake From Client

I have had spent some time recently making netty 3.6 sending some message when connection has been established.

What documentation suggests to do is to extend SimpleChannelUpstreamHandler and override method channelConnected(...). It works fine unless SslHandler is used in the pipeline. If handler is present, channelConnected() was never called on my handler.

Crearing an array in JavaScript

Since it may be references to existing javascript array from other objects, the best way to clear array contents is assign its length to zero

2012