Closed cmebarrow closed 8 years ago
@cmebarrow It seems like you already have the fix for this bug based on your comment. You can post the PR here and close this issue, when you are back :)
Fix is in my branch gateway_issue_463
This was fixed by PR https://github.com/kaazing/gateway/pull/466 which was merged on 28-Mar-16
As @Anisotrop remarked in comments in https://github.com/kaazing/gateway/pull/445, the server (wsn transport) continues to read incoming data after detecting that the incoming WebSocket frame size exceeds the configured limit. This results in further protocol decoder errors and is also in violation of RFC 6455, which states (in section 7.1.7 Fail the WebSocket connection
and section 10.4. Implementation-Specific Limits implies that when the limit is exceeded the server should fail the WebSocket connection.
To reproduce:
mvn verify -DskipTests -Dit.test=LimitsMaxSizeDefaultIT
The throw causes trace level of messages to be printed out (thanks to the MethodExecutionTrace rule). These show numerous protocol decoder exceptions after the detection of the message size exceeded exception, indicating that the server is continuing to read incoming data in violation of the spec.