Bug 56982 - Websocket session.getNegotiatedExtensions() always return an empty list whereas permessage-deflate enabled
Summary: Websocket session.getNegotiatedExtensions() always return an empty list where...
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: WebSocket (show other bugs)
Version: 8.0.12
Hardware: PC All
: P2 normal (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
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.