<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 11/4/21 5:46 PM, Andy Green wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:fae1cbbf-cc74-2203-d229-12453225eda4@warmcat.com">
      <br>
      Does this problem go away if you disable permessage-deflate at
      either the sender or the receiver?
      <br>
      <br>
    </blockquote>
    <p>It seems lws has extensions disabled by default. I tried to add this code</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">        const struct lws_extension extensions[] = {
                {
                        "permessage-deflate",
                        lws_extension_callback_pm_deflate,
                        "permessage-deflate"
                         "; client_no_context_takeover"
                         "; client_max_window_bits"
                },
                { NULL, NULL, NULL /* terminator */ }
        };
        contextInfo.extensions = extensions;

 and got "<span style=" color:#aa0000;">undefined reference to `lws_extension_callback_pm_deflate'<font color="#000000">".</font></span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;"><font color="#000000">Call to lwsl_wsi_ext(wsi, "post inflate ebuf in len %d / out len %d",...)</font></span> is outside of 
</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">#if !defined(LWS_WITHOUT_EXTENSIONS)</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">and thus log message "<span style=" color:#aa0000;"><font color="#000000">post inflate ebuf" visible without extensions turned on</font></span>.</p>
    <p><style type="text/css">p, li { white-space: pre-wrap; }</style></p>
    <blockquote type="cite"
      cite="mid:fae1cbbf-cc74-2203-d229-12453225eda4@warmcat.com">Is lws
      also doing the sending?
      <br>
    </blockquote>
    No, server side uses QWebSocketServer and according to docs
    extensions are not supported.<br>
    <p>--</p>
    <p>Roman
</p>
  </body>
</html>