Tomcat JSR356 Websocket - disable permessage-deflate compression

前端 未结 1 420
隐瞒了意图╮
隐瞒了意图╮ 2020-12-21 02:17

I\'m, working on a Java servlet which runs on a Tomcat 8.0.18 server and uses the JSR356 websocket API to communicate with a browser. By default Tomcat uses the \"permessage

相关标签:
1条回答
  • 2020-12-21 03:11

    Please try to add jvm option

    -Dorg.apache.tomcat.websocket.DISABLE_BUILTIN_EXTENSIONS=true
    

    to catalina.bat (for windows) or catalina.sh (for unix like OS).

    e.g. add this line at the beginning of catalina.sh

    CATALINA_OPTS="-Dorg.apache.tomcat.websocket.DISABLE_BUILTIN_EXTENSIONS=true"
    

    add this line at the beginning of catalina.bat

    set CATALINA_OPTS="-Dorg.apache.tomcat.websocket.DISABLE_BUILTIN_EXTENSIONS=true"
    
    0 讨论(0)
提交回复
热议问题