TooTallNate/Java-WebSocket — pull request #261 by cbinners (2014-05-15 23:56:58+00:00)
Title: Changed read call to be iterative not recursive.

Using an SSL socket on Android causes a StackOverflowException when reading a large message.

This change gets rid of the recursive read, and switches it to an iterative version, avoiding the unnecessary stack growth.