I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 65d85f74 authored by jrandom's avatar jrandom Committed by zzz
Browse files

the vast majority of messages on the live net are under 2KB

parent 476e23db
No related branches found
No related tags found
No related merge requests found
...@@ -393,7 +393,7 @@ class TCPConnection implements I2NPMessageReader.I2NPMessageEventListener { ...@@ -393,7 +393,7 @@ class TCPConnection implements I2NPMessageReader.I2NPMessageEventListener {
if (_log.shouldLog(Log.DEBUG)) if (_log.shouldLog(Log.DEBUG))
_log.debug("Message received from " + _remoteIdentity.getHash().toBase64()); _log.debug("Message received from " + _remoteIdentity.getHash().toBase64());
try { try {
ByteArrayOutputStream baos = new ByteArrayOutputStream(32*1024); ByteArrayOutputStream baos = new ByteArrayOutputStream(2*1024);
message.writeBytes(baos); message.writeBytes(baos);
int size = baos.size(); int size = baos.size();
// this is called by the I2NPMessageReader's thread, so it delays the reading from this peer only // this is called by the I2NPMessageReader's thread, so it delays the reading from this peer only
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment