mirror of
https://github.com/boostorg/beast.git
synced 2025-08-02 14:24:31 +02:00
Fix utf8 check for compressed frames
This commit is contained in:
@@ -3,6 +3,7 @@ Version 107:
|
|||||||
WebSocket
|
WebSocket
|
||||||
|
|
||||||
* Fix done state for WebSocket reads
|
* Fix done state for WebSocket reads
|
||||||
|
* Fix utf8 check for compressed frames
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -543,8 +543,7 @@ operator()(
|
|||||||
// check utf8
|
// check utf8
|
||||||
if(! ws_.rd_.utf8.write(
|
if(! ws_.rd_.utf8.write(
|
||||||
buffer_prefix(bytes_written_, cb_.get())) || (
|
buffer_prefix(bytes_written_, cb_.get())) || (
|
||||||
ws_.rd_.remain == 0 && ws_.rd_.fh.fin &&
|
ws_.rd_.done && ! ws_.rd_.utf8.finish()))
|
||||||
! ws_.rd_.utf8.finish()))
|
|
||||||
{
|
{
|
||||||
// _Fail the WebSocket Connection_
|
// _Fail the WebSocket Connection_
|
||||||
code = close_code::bad_payload;
|
code = close_code::bad_payload;
|
||||||
@@ -1241,8 +1240,7 @@ loop:
|
|||||||
// check utf8
|
// check utf8
|
||||||
if(! rd_.utf8.write(
|
if(! rd_.utf8.write(
|
||||||
buffer_prefix(bytes_written, buffers)) || (
|
buffer_prefix(bytes_written, buffers)) || (
|
||||||
rd_.remain == 0 && rd_.fh.fin &&
|
rd_.done && ! rd_.utf8.finish()))
|
||||||
! rd_.utf8.finish()))
|
|
||||||
{
|
{
|
||||||
// _Fail the WebSocket Connection_
|
// _Fail the WebSocket Connection_
|
||||||
do_fail(
|
do_fail(
|
||||||
|
Reference in New Issue
Block a user