Fix reuse of sliding window in WebSocket permessage_deflate:

Original commit message:
Use zlib::Flush::sync instead of zlib::Flush::full, for stream compression

https://github.com/boostorg/beast/issues/2313

fixes #2313
closes #2318
This commit is contained in:
Hreniuc Cristian-Alexandru authored and Richard Hodges committed 2021-11-03 18:46:53 +01:00
1 parent 2f4506dc37
commit 91c0df61d0
2 files changed
+2 -1

No files matched your search

@@ -137,7 +137,7 @@ struct impl_base<true>
return false;
if(zs.avail_out >= 6)
{
zo.write(zs, zlib::Flush::full, ec);
zo.write(zs, zlib::Flush::sync, ec);
BOOST_ASSERT(! ec);
// remove flush marker
zs.total_out -= 4;