Skip to content

Commit

Permalink
fixup: introduce input_buffer_factory concept.
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslaw Zarzynski <[email protected]>
  • Loading branch information
rzarzynski committed Jun 7, 2019
1 parent 8bca25c commit 2073fcb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/net/posix-stack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,6 @@ future<temporary_buffer<char>>
posix_data_source_impl::get() {
_buf = _buffer_factory->create(_buffer_allocator);
return _fd->read_some(_buf.get_write(), _buf.size()).then([this] (size_t size) {
// XXX: if the next v2 frame's prologue isn't available yet, size will be
// smaller than the estimation and extra get() would be necessary. I hope
// this won't the typical case.
_buf.trim(size);
auto ret = std::move(_buf);
return make_ready_future<temporary_buffer<char>>(std::move(ret));
Expand Down

0 comments on commit 2073fcb

Please sign in to comment.