Skip to content

Commit

Permalink
max payload is always 1730
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed May 1, 2020
1 parent ec4e17f commit d48db50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libi2pd/Streaming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ namespace stream
memset (signature, 0, signatureLen); // zeroes for now
size += signatureLen; // signature
htobe16buf (optionsSize, packet + size - 2 - optionsSize); // actual options size
size += m_SendBuffer.Get (packet + size, STREAMING_MTU - size); // payload
size += m_SendBuffer.Get (packet + size, STREAMING_MTU); // payload
m_LocalDestination.GetOwner ()->Sign (packet, size, signature);
}
else
Expand All @@ -515,7 +515,7 @@ namespace stream
size += 2; // flags
htobuf16 (packet + size, 0); // no options
size += 2; // options size
size += m_SendBuffer.Get(packet + size, STREAMING_MTU - size); // payload
size += m_SendBuffer.Get(packet + size, STREAMING_MTU); // payload
}
p->len = size;
packets.push_back (p);
Expand Down

0 comments on commit d48db50

Please sign in to comment.