Write buffer option does not change capacity

This commit is contained in:
Vinnie Falco
2016-10-25 16:45:27 -04:00
parent 74e77682c7
commit dfb2d05be3
2 changed files with 5 additions and 3 deletions

View File

@ -7,6 +7,10 @@ HTTP
* Check invariants in parse_op: * Check invariants in parse_op:
* Clean up message docs * Clean up message docs
WebSocket
* Write buffer option does not change capacity
Core Core
* Meet DynamicBuffer requirements for static_streambuf * Meet DynamicBuffer requirements for static_streambuf
@ -17,7 +21,6 @@ Extras
- New overload of fail() specifies file and line - New overload of fail() specifies file and line
- BEAST_EXPECTS only evaluates the reason string on a failure - BEAST_EXPECTS only evaluates the reason string on a failure
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
1.0.0-b17 1.0.0-b17

View File

@ -235,12 +235,11 @@ public:
rd_msg_max_ = o.value; rd_msg_max_ = o.value;
} }
/// Set the size of the mask buffer /// Set the size of the write buffer
void void
set_option(write_buffer_size const& o) set_option(write_buffer_size const& o)
{ {
wr_buf_size_ = o.value; wr_buf_size_ = o.value;
stream_.capacity(o.value);
} }
/** Get the io_service associated with the stream. /** Get the io_service associated with the stream.