From dfb2d05be398f5ad1f7abcacecfbb2a81e870a98 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Tue, 25 Oct 2016 16:45:27 -0400 Subject: [PATCH] Write buffer option does not change capacity --- CHANGELOG.md | 5 ++++- include/beast/websocket/stream.hpp | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bce2f10..5488b85d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ HTTP * Check invariants in parse_op: * Clean up message docs +WebSocket + +* Write buffer option does not change capacity + Core * Meet DynamicBuffer requirements for static_streambuf @@ -17,7 +21,6 @@ Extras - New overload of fail() specifies file and line - BEAST_EXPECTS only evaluates the reason string on a failure - -------------------------------------------------------------------------------- 1.0.0-b17 diff --git a/include/beast/websocket/stream.hpp b/include/beast/websocket/stream.hpp index 504e4b52..85d3fc4a 100644 --- a/include/beast/websocket/stream.hpp +++ b/include/beast/websocket/stream.hpp @@ -235,12 +235,11 @@ public: rd_msg_max_ = o.value; } - /// Set the size of the mask buffer + /// Set the size of the write buffer void set_option(write_buffer_size const& o) { wr_buf_size_ = o.value; - stream_.capacity(o.value); } /** Get the io_service associated with the stream.