mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-08 22:57:52 +00:00
fixed outgoing message size
This commit is contained in:
parent
7ea12ddd61
commit
b26c960450
@ -241,7 +241,7 @@ namespace client
|
|||||||
memcpy (buf->data (), header.str ().c_str (), offset);
|
memcpy (buf->data (), header.str ().c_str (), offset);
|
||||||
}
|
}
|
||||||
memcpy (buf->data () + offset, ss.str ().c_str (), len);
|
memcpy (buf->data () + offset, ss.str ().c_str (), len);
|
||||||
boost::asio::async_write (*socket, boost::asio::buffer (buf->data (), len),
|
boost::asio::async_write (*socket, boost::asio::buffer (buf->data (), offset + len),
|
||||||
boost::asio::transfer_all (),
|
boost::asio::transfer_all (),
|
||||||
std::bind(&I2PControlService::HandleResponseSent, this,
|
std::bind(&I2PControlService::HandleResponseSent, this,
|
||||||
std::placeholders::_1, std::placeholders::_2, socket, buf));
|
std::placeholders::_1, std::placeholders::_2, socket, buf));
|
||||||
|
Loading…
Reference in New Issue
Block a user