https://redmine.lighttpd.net/https://redmine.lighttpd.net/favicon.ico?13667327412018-01-19T12:38:08Zlighty labsLighttpd - Bug #2858: Wrong websocket frametype if frame is longer then UINT16_MAXhttps://redmine.lighttpd.net/issues/2858?journal_id=112672018-01-19T12:38:08Zstbuehler
<ul></ul><p>That line also doesn't seem to be needed for something else given the other 9 bytes are all explicitly set.</p> Lighttpd - Bug #2858: Wrong websocket frametype if frame is longer then UINT16_MAXhttps://redmine.lighttpd.net/issues/2858?journal_id=112682018-01-19T12:39:49Zrschmid
<ul></ul><p>stbuehler wrote:</p>
<blockquote>
<p>That line also doesn't seem to be needed for something else given the other 9 bytes are all explicitly set.</p>
</blockquote>
<p>you are right</p>
<p>This diff worked for me</p>
<pre><code class="diff syntaxhl" data-language="diff"><span class="gd">--- a/src/mod_wstunnel.c 2018-01-19 12:17:14.774391315 +0100
</span><span class="gi">+++ b/src/mod_wstunnel.c 2018-01-19 12:18:32.061732967 +0100
</span><span class="p">@@ -1122,7 +1122,6 @@</span> static int send_rfc_6455(handler_ctx *hc
len = 1+MOD_WEBSOCKET_FRAME_LEN16_CNT+1;
}
else {
<span class="gd">- memset(mem, 0, sizeof(mem));
</span> mem[1] = MOD_WEBSOCKET_FRAME_LEN63;
mem[2] = 0;
mem[3] = 0;
</code></pre> Lighttpd - Bug #2858: Wrong websocket frametype if frame is longer then UINT16_MAXhttps://redmine.lighttpd.net/issues/2858?journal_id=112692018-01-20T01:25:31Zgstrauss
<ul><li><strong>Category</strong> set to <i>mod_wstunnel</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Patch Pending</i></li><li><strong>Target version</strong> changed from <i>1.4.x</i> to <i>1.4.49</i></li></ul><p>Yes, that's a bug. Sorry. Will push a fix to lighttpd git master soon.</p> Lighttpd - Bug #2858: Wrong websocket frametype if frame is longer then UINT16_MAXhttps://redmine.lighttpd.net/issues/2858?journal_id=112732018-01-20T03:30:32Zgstrauss
<ul><li><strong>Status</strong> changed from <i>Patch Pending</i> to <i>Fixed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="[mod_wstunnel] fix for frames larger than 64k (fixes #2858) (thx rschmid) x-ref: "Wrong webso..." href="https://redmine.lighttpd.net/projects/lighttpd/repository/14/revisions/30fe3684f6d0b106c96fcad6a8b1a1d444b7ce6e">30fe3684f6d0b106c96fcad6a8b1a1d444b7ce6e</a>.</p> Lighttpd - Bug #2858: Wrong websocket frametype if frame is longer then UINT16_MAXhttps://redmine.lighttpd.net/issues/2858?journal_id=113512018-03-15T16:26:40Zpidloop
<ul></ul><p>Thanks for finding and fixing this one, it was critical to my application. I had been using 1.4.48 and was getting "Received unexpected continuation frame" whenever my backend process would send a large message. 1.4.49 fixed it and now it works great. I'll now go make a donation!</p>
<p>BTW, I am using Centos 7 which still only has 1.4.48 in its default repository. Not sure who manages that but it would be great if this could be updated to 1.4.49 to save me the trouble of building lighttpd 1.4.19 from source on my other systems.</p>
<p>Thanks again!</p> Lighttpd - Bug #2858: Wrong websocket frametype if frame is longer then UINT16_MAXhttps://redmine.lighttpd.net/issues/2858?journal_id=113522018-03-15T16:41:36Zavij
<ul></ul><p>You are likely using lighttpd from EPEL. CentOS itself does not have lighttpd. Try "yum update --enablerepo=epel-testing". If it works, please give positive karma on <a class="external" href="https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-2a3d51dc83">https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-2a3d51dc83</a> to make the package move from testing to stable quicker.</p>