akka/akka — pull request #994 by drewhk (2013-01-03 14:09:36+00:00)
Title: Added setIssueHandshake() to enable auto-handshake #2388

Attempt to fix the failed SSL tests.

Netty docs says that "You must make sure not to write a message while the handshake is in progress unless you are renegotiating. You will be notified by the ChannelFuture which is returned by the handshake() method when the handshake process succeeds or fails."

And "If isIssueHandshake() is false (default) you will need to take care of calling handshake() by your own. In most situations were SslHandler is used in 'client mode' you want to issue a handshake once the connection was established. if setIssueHandshake(boolean) is set to true you don't need to worry about this as the SslHandler will take care of it."