We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fba104c commit 78fd641Copy full SHA for 78fd641
libs/network/example/http/fileserver.cpp
@@ -134,7 +134,7 @@ struct connection_handler : boost::enable_shared_from_this<connection_handler> {
134
connection->write(
135
boost::asio::const_buffers_1(
136
static_cast<char const *>(mmaped_region.first) + offset,
137
- rightmost_bound),
+ rightmost_bound - offset),
138
boost::bind(&connection_handler::handle_chunk,
139
connection_handler::shared_from_this(), mmaped_region,
140
rightmost_bound, connection, _1));
0 commit comments