From 3c2681f02b4e615bc88eadf72e66d4c6c16efa4a Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 7 Jun 2017 07:07:24 -0700 Subject: [PATCH] Fix test::pipe read_size --- CHANGELOG.md | 1 + extras/beast/test/pipe_stream.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ba59ce0..1ba340b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Version 50 * Body documentation work * Add missing handler_alloc nested types * Fix chunk delimiter parsing +* Fix test::pipe read_size API Changes: diff --git a/extras/beast/test/pipe_stream.hpp b/extras/beast/test/pipe_stream.hpp index eac8549c..0f02a49d 100644 --- a/extras/beast/test/pipe_stream.hpp +++ b/extras/beast/test/pipe_stream.hpp @@ -368,7 +368,7 @@ read_some(MutableBufferSequence const& buffers, if(in_.b.size() > 0) { bytes_transferred = buffer_copy( - buffers, in_.b.data(), write_max_); + buffers, in_.b.data(), read_max_); in_.b.consume(bytes_transferred); } else