receive bigger packets

This commit is contained in:
orignal 2022-07-14 20:12:27 -04:00
parent 014e4b0e1d
commit 5026dbc1b3
3 changed files with 11 additions and 12 deletions

View file

@ -175,7 +175,7 @@ namespace transport
while (moreBytes && packets.size () < 32)
{
packet = m_PacketsPool.AcquireMt ();
packet->len = socket.receive_from (boost::asio::buffer (packet->buf, SSU2_MTU), packet->from, 0, ec);
packet->len = socket.receive_from (boost::asio::buffer (packet->buf, SSU2_MAX_PACKET_SIZE), packet->from, 0, ec);
if (!ec)
{
i2p::transport::transports.UpdateReceivedBytes (packet->len);