forked from boostorg/beast
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:
@@ -770,6 +770,7 @@ write_frame(bool fin,
|
||||
fh.len = n;
|
||||
remain -= n;
|
||||
fh.fin = fin ? remain == 0 : false;
|
||||
wr_.cont = ! fh.fin;
|
||||
detail::fh_streambuf fh_buf;
|
||||
detail::write<static_streambuf>(fh_buf, fh);
|
||||
boost::asio::write(stream_,
|
||||
|
||||
Reference in New Issue
Block a user