In my JSR WebSocket's @OnOpen method, I'm calling javax.websocket.Session.setMaxBinaryMessageBufferSize to increase the buffer size. I have verified that WebSocketPolicy.setMaxBinaryMessageBufferSize is getting called and correctly changing a policy's buffer size.
In line 86 of DeflateFrameExtension, however, the policy returned by the call to getPolicy() is apparently a different WebSocketPolicy, as its binaryMessageBufferSize remains at the default value of 32KB.
Should extensions share the WebSocketPolicy object of the Session itself? Or is there some other way that I should be configuring these maximums specific to extensions.