netty5/handler/src
Frédéric Brégier 1a487a0ff9 Change Scheduled to FixedRate in Traffic Counter (#9245)
Motivation:

Traffic shaping needs more accurate execution than scheduled one. So the
use of FixedRate instead.
Moreover the current implementation tends to create as many threads as
channels use a ChannelTrafficShapingHandlern, which is unnecessary.

Modifications:

Change the executor.schedule to executor.scheduleAtFixedRate in the
start and remove the reschedule call from run monitor thread since it
will be restarted by the Fixed rate executor.
Also fix a minor bug where restart was only doing start() without stop()
before.

Result:

Threads are more stable in number of cached and precision of traffic
shaping is enhanced.
2019-06-18 09:35:10 +02:00
..
main/java/io/netty/handler Change Scheduled to FixedRate in Traffic Counter (#9245) 2019-06-18 09:35:10 +02:00
test SslHandler to fail handshake and pending writes if non-application write fails (#9240) 2019-06-16 07:45:25 +02:00