Mercurial > hg > Database > Alice
changeset 627:f5365a5e6672 dispose
don't use unpacker
author | nozomi |
---|---|
date | Thu, 14 Sep 2017 18:00:15 +0900 |
parents | 0960dd991266 |
children | 71dfb0051be0 |
files | src/main/java/alice/daemon/IncomingTcpConnection.java |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/alice/daemon/IncomingTcpConnection.java Thu Sep 14 17:04:53 2017 +0900 +++ b/src/main/java/alice/daemon/IncomingTcpConnection.java Thu Sep 14 18:00:15 2017 +0900 @@ -60,8 +60,11 @@ case UPDATE: case PUT: int dataSize = unpacker.readInt(); + //byte[] data = unpacker.getSerializedByteArray(dataSize); + byte[] data = new byte[dataSize]; + connection.socket.getInputStream().read(data); + rData = new ReceiveData(data, msg.compressed, msg.dataSize); - rData = new ReceiveData(unpacker.getSerializedByteArray(dataSize), msg.compressed, msg.dataSize); /* rData = new ReceiveData(new byte[dataSize], msg.compressed, msg.dataSize); try {