From f8ccbef2b16b74edbd7867c4c4a9ad793b3e1b04 Mon Sep 17 00:00:00 2001 From: zhangxin10 Date: Fri, 13 Nov 2015 22:26:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E4=B8=8A=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reciever/handler/CollectionServerDataHandler.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/skywalking-server/src/main/java/com/ai/cloud/skywalking/reciever/handler/CollectionServerDataHandler.java b/skywalking-server/src/main/java/com/ai/cloud/skywalking/reciever/handler/CollectionServerDataHandler.java index 524a873c4..5dd262472 100644 --- a/skywalking-server/src/main/java/com/ai/cloud/skywalking/reciever/handler/CollectionServerDataHandler.java +++ b/skywalking-server/src/main/java/com/ai/cloud/skywalking/reciever/handler/CollectionServerDataHandler.java @@ -1,12 +1,13 @@ package com.ai.cloud.skywalking.reciever.handler; import com.ai.cloud.skywalking.reciever.buffer.DataBufferThreadContainer; +import com.ai.cloud.skywalking.reciever.util.ByteArrayUtil; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; -public class CollectionServerDataHandler extends SimpleChannelInboundHandler { +public class CollectionServerDataHandler extends SimpleChannelInboundHandler { @Override - protected void channelRead0(ChannelHandlerContext ctx, Object msg) throws Exception { - DataBufferThreadContainer.getDataBufferThread().doCarry(msg.toString().getBytes()); + protected void channelRead0(ChannelHandlerContext ctx, byte[] msg) throws Exception { + DataBufferThreadContainer.getDataBufferThread().doCarry(msg); } }