Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
changed variable name to be complient to coding style
  • Loading branch information
nwerensteijn committed Nov 24, 2013
commit bf64ef950fe2141a57c8f435fce5297b81d272cf
4 changes: 2 additions & 2 deletions boost/network/protocol/http/client/connection/sync_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ struct sync_connection_base_impl {
bool stopping_inner = false;
do {
if (response_buffer.size() < (chunk_size+2)){
std::size_t toRead = (chunk_size+2) - response_buffer.size();
std::size_t bytes_to_read = (chunk_size+2) - response_buffer.size();
std::size_t chunk_bytes_read =
read(socket_,
response_buffer,
boost::asio::transfer_at_least(toRead),
boost::asio::transfer_at_least(bytes_to_read),
error);
if (chunk_bytes_read == 0) {
if (error != boost::asio::error::eof)
Expand Down