mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
increase I2CP socket buffer size
This commit is contained in:
@@ -287,6 +287,11 @@ namespace client
|
|||||||
|
|
||||||
void I2CPSession::Start ()
|
void I2CPSession::Start ()
|
||||||
{
|
{
|
||||||
|
if (m_Socket)
|
||||||
|
{
|
||||||
|
m_Socket->set_option (boost::asio::socket_base::receive_buffer_size (I2CP_MAX_MESSAGE_LENGTH));
|
||||||
|
m_Socket->set_option (boost::asio::socket_base::send_buffer_size (I2CP_MAX_MESSAGE_LENGTH));
|
||||||
|
}
|
||||||
ReadProtocolByte ();
|
ReadProtocolByte ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user