Closed roxma closed 6 years ago
The callback of boost::asio::async_read is scheduled outside of do_read(). Using local variable as buffer has undefined behavior.
boost::asio::async_read
This PR is possiblly related to issue #266 // cc @marekfoltyn
// Also should use ntohs instead of htons when reading from socket.
Thank you for the PR. I will do some test for the large payload.
The callback of
boost::asio::async_read
is scheduled outside of do_read(). Using local variable as buffer has undefined behavior.This PR is possiblly related to issue #266 // cc @marekfoltyn
// Also should use ntohs instead of htons when reading from socket.