diff --git a/src/net/posix-stack.cc b/src/net/posix-stack.cc index 469dd4be349..c41a59b4bc2 100644 --- a/src/net/posix-stack.cc +++ b/src/net/posix-stack.cc @@ -327,9 +327,6 @@ future> 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>(std::move(ret));