mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 05:17:26 +02:00
Set internal state correctly when writing frames:
fix #300 Correctly set wr_.cont when performing synchronous frame writes, for the case where masking and autofragment are used.
This commit is contained in:
@ -1,7 +1,14 @@
|
|||||||
1.0.0-b33
|
1.0.0-b33
|
||||||
|
|
||||||
* Require Visual Studio 2015 Update 3 or later
|
* Require Visual Studio 2015 Update 3 or later
|
||||||
|
|
||||||
|
HTTP
|
||||||
|
|
||||||
* Use fwrite return value in file_body
|
* Use fwrite return value in file_body
|
||||||
|
|
||||||
|
WebSocket
|
||||||
|
|
||||||
|
* Set internal state correctly when writing frames
|
||||||
* Add decorator unit test
|
* Add decorator unit test
|
||||||
* Add write_frames unit test
|
* Add write_frames unit test
|
||||||
|
|
||||||
|
@ -770,6 +770,7 @@ write_frame(bool fin,
|
|||||||
fh.len = n;
|
fh.len = n;
|
||||||
remain -= n;
|
remain -= n;
|
||||||
fh.fin = fin ? remain == 0 : false;
|
fh.fin = fin ? remain == 0 : false;
|
||||||
|
wr_.cont = ! fh.fin;
|
||||||
detail::fh_streambuf fh_buf;
|
detail::fh_streambuf fh_buf;
|
||||||
detail::write<static_streambuf>(fh_buf, fh);
|
detail::write<static_streambuf>(fh_buf, fh);
|
||||||
boost::asio::write(stream_,
|
boost::asio::write(stream_,
|
||||||
|
Reference in New Issue
Block a user