Changeset 60e25b9


Ignore:
Timestamp:
Dec 11, 2011 1:40:06 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
b47dead
Parents:
474909a
Message:

dont use stream method to avoid data copy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/transport/VMCommSystem.java

    r474909a r60e25b9  
    11package net.i2p.router.transport;
    22
    3 import java.io.ByteArrayInputStream;
    43import java.io.IOException;
    54import java.io.OutputStream;
     
    111110            I2NPMessageHandler handler = new I2NPMessageHandler(_ctx);
    112111            try {
    113                 I2NPMessage msg = handler.readMessage(new ByteArrayInputStream(_msg));
     112                I2NPMessage msg = handler.readMessage(_msg);
    114113                int size = _msg.length;
    115114                _ctx.profileManager().messageReceived(_from, "vm", 1, size);
Note: See TracChangeset for help on using the changeset viewer.