@@ -0,0 +1,647 @@
+/*%0A * To change this template, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage com.turn.ttorrent.client.io;%0A%0Aimport io.netty.handler.traffic.ChannelTrafficShapingHandler;%0A%0A/**%0A *%0A * @author shevek%0A */%0Apublic class PeerMessageTrafficShapingHandler extends ChannelTrafficShapingHandler %7B%0A%0A    public PeerMessageTrafficShapingHandler(long checkInterval) %7B%0A        super(checkInterval);%0A    %7D%0A%0A    @Override%0A    protected long calculateSize(Object msg) %7B%0A        if (msg instanceof PeerMessage.PieceMessage)%0A            return ((PeerMessage.PieceMessage) msg).getLength();%0A        return super.calculateSize(msg);%0A    %7D%0A%7D%0A

Add empty PeerMessageTrafficShapingHandler to attempt to remove manual EWMA.