Skip to content

Commit

Permalink
Ensure correct buffer size for inbound data (ECFLOW-1964)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosbento committed Mar 13, 2023
1 parent d4c271c commit c2e13be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Base/src/Connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class connection {
boost::asio::async_read(
socket_,
boost::asio::buffer(inbound_header_),
[this, &t, handler](const boost::system::error_code& error, std::size_t transferred_bytes) {
[this, &t, handler](const boost::system::error_code& error, std::size_t bytes_transferred) {
this->handle_read_header(error, t, handler);
});
}
Expand Down Expand Up @@ -157,6 +157,7 @@ class connection {
}

// Start an asynchronous call to receive the data.
inbound_data_.resize(inbound_data_size);
boost::asio::async_read(
socket_,
boost::asio::buffer(inbound_data_),
Expand Down

0 comments on commit c2e13be

Please sign in to comment.