TooTallNate/Java-WebSocket — pull request #153 by 2fours (2013-02-03 16:02:39+00:00)
Title: Make SSLSocketChannel2 handle multiple SSL results in 1 buffer read

Took me a few days to track this bug down. On my node server the Server Hello, Certificate, and ServerHelloDone messages were being returned in one tcp packet. The code in SSLSocketChannel2 was only handling the first message in the packet, so the SSL handshake would never complete. Please ignore the other file changes, SSLSocketChannel2 is the only file you need to merge.

Thanks for the great library.

Adam