netty/netty — pull request #753 by mheath (2012-11-20 06:15:34+00:00)
Title: Fix exception handling

Previously, if an exception is thrown in the handler's messageReceived method, the same handlers exceptionCaught would not get called.

This fixes that problem. It also fixes a bug in the WebSocketServerProtocolHandshakeHandler which was closing the socket without sending an error response when an exception was thrown. Instead, the exception should propagate to the WebSocketServerProtocolHandler. (At least, that's what the tests are expecting and that's what the tests were getting previously because of the exceptionCaught bug.)