forked from I2P_Developers/i2p.i2p
the vast majority of messages on the live net are under 2KB
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user