In the default case it makes sense to be as transparent as possible, forwarding all frames as-is. When aggregate_fragments is turned on, however, we are no longer a completely neutral intermediary, so we need to do a little more work to detect protocol errors and incorrect behavior.
This is a test suite for WebSockets with many helpful test cases around fragmentation. It would be good to implement this in CI or translate the fragmentation test cases into Test::Nginx::Socket.
In the default case it makes sense to be as transparent as possible, forwarding all frames as-is. When
aggregate_fragmentsis turned on, however, we are no longer a completely neutral intermediary, so we need to do a little more work to detect protocol errors and incorrect behavior.This is a test suite for WebSockets with many helpful test cases around fragmentation. It would be good to implement this in CI or translate the fragmentation test cases into
Test::Nginx::Socket.