Bug 56982 - Websocket session.getNegotiatedExtensions() always return an empty list whereas permessage-deflate enabled
Websocket session.getNegotiatedExtensions() always return an empty list where...
Status: RESOLVED FIXED
Product: Tomcat 8
Classification: Unclassified
Component: WebSocket
8.0.12
PC All
: P2 normal (vote)
: ----
Assigned To: Tomcat Developers Mailing List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2014-09-14 14:29 UTC by christian.senet
Modified: 2014-09-15 10:01 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description christian.senet 2014-09-14 14:29:40 UTC
whereas permessage-deflate is enabled, WsSession.getNegotiatedExtensions() always return an empty list.
If I use a  ServerEndpointConfig.Configurator, I see that the ServerEndpointConfig return a list with the "permessage-deflate" extension.

but in WsSession.java the current code is

    public List<Extension> getNegotiatedExtensions() {
        checkState();
        return Collections.emptyList();
    }


regards
Comment 1 Mark Thomas 2014-09-15 10:01:20 UTC
Thanks for the report.
This has been fixed in 8.0.x for 8.0.13 onwards.