mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
Add header size for each packet.
This commit is contained in:
@@ -7,6 +7,7 @@ import org.jboss.netty.channel.ChannelFuture;
|
||||
import org.jboss.netty.channel.ChannelFutureListener;
|
||||
|
||||
import static com.alibaba.otter.canal.server.netty.CanalServerWithNettyProfiler.profiler;
|
||||
import static com.alibaba.otter.canal.server.netty.NettyUtils.HEADER_LENGTH;
|
||||
|
||||
/**
|
||||
* @author Chuanyi Li
|
||||
@@ -32,7 +33,7 @@ public class ChannelFutureAggregator implements ChannelFutureListener {
|
||||
.destination(destination)
|
||||
.type(type)
|
||||
.request(request)
|
||||
.amount(amount)
|
||||
.amount(amount + HEADER_LENGTH)
|
||||
.latency(latency)
|
||||
.errorCode(errorCode)
|
||||
.empty(empty)
|
||||
|
||||
Reference in New Issue
Block a user