mirror of
https://github.com/boostorg/beast.git
synced 2025-08-01 13:54:38 +02:00
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:
committed by
Richard Hodges
parent
2f4506dc37
commit
91c0df61d0
@@ -1,5 +1,6 @@
|
|||||||
Version XXX:
|
Version XXX:
|
||||||
|
|
||||||
|
* Fix reuse of sliding window in WebSocket permessage_deflate.
|
||||||
* Fix accept error handling in http_server_async example.
|
* Fix accept error handling in http_server_async example.
|
||||||
* Move library-specific docca configuration to Beast.
|
* Move library-specific docca configuration to Beast.
|
||||||
* Remove dependency on RTTI in `test::stream`.
|
* Remove dependency on RTTI in `test::stream`.
|
||||||
|
@@ -137,7 +137,7 @@ struct impl_base<true>
|
|||||||
return false;
|
return false;
|
||||||
if(zs.avail_out >= 6)
|
if(zs.avail_out >= 6)
|
||||||
{
|
{
|
||||||
zo.write(zs, zlib::Flush::full, ec);
|
zo.write(zs, zlib::Flush::sync, ec);
|
||||||
BOOST_ASSERT(! ec);
|
BOOST_ASSERT(! ec);
|
||||||
// remove flush marker
|
// remove flush marker
|
||||||
zs.total_out -= 4;
|
zs.total_out -= 4;
|
||||||
|
Reference in New Issue
Block a user