From 3bd77e93f17439c00cd59f41eb7d310b0121b8a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Br=C3=A9gier?= Date: Sun, 20 May 2012 16:38:21 +0300 Subject: [PATCH] Same fix than in version 3.5 for Master branch (refer to issue #345) Will be proposed once the one in 3.5 will be validated --- .../traffic/GlobalTrafficShapingHandler.java | 98 ++++++------------- 1 file changed, 31 insertions(+), 67 deletions(-) diff --git a/handler/src/main/java/io/netty/handler/traffic/GlobalTrafficShapingHandler.java b/handler/src/main/java/io/netty/handler/traffic/GlobalTrafficShapingHandler.java index a9a96a436c..b6617d8847 100644 --- a/handler/src/main/java/io/netty/handler/traffic/GlobalTrafficShapingHandler.java +++ b/handler/src/main/java/io/netty/handler/traffic/GlobalTrafficShapingHandler.java @@ -15,13 +15,12 @@ */ package io.netty.handler.traffic; -import java.util.concurrent.Executor; - import io.netty.channel.ChannelHandler.Sharable; import io.netty.handler.execution.ExecutionHandler; import io.netty.handler.execution.MemoryAwareThreadPoolExecutor; import io.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor; import io.netty.handler.execution.ObjectSizeEstimator; +import io.netty.util.Timer; /** * This implementation of the {@link AbstractTrafficShapingHandler} is for global @@ -31,8 +30,8 @@ import io.netty.handler.execution.ObjectSizeEstimator; * The general use should be as follow:
*