Skip to content

Bugfix: fileserver example chunked data #514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Bugfix: fileserver example chunked data
`boost::asio::const_buffers_1` expects a size as second parameter, not the end pointer
  • Loading branch information
pdgendt committed Apr 3, 2015
commit 78fd6415e67d197cd18af5173dcc651c389de008
2 changes: 1 addition & 1 deletion libs/network/example/http/fileserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ struct connection_handler : boost::enable_shared_from_this<connection_handler> {
connection->write(
boost::asio::const_buffers_1(
static_cast<char const *>(mmaped_region.first) + offset,
rightmost_bound),
rightmost_bound - offset),
boost::bind(&connection_handler::handle_chunk,
connection_handler::shared_from_this(), mmaped_region,
rightmost_bound, connection, _1));
Expand Down