fluent/fluentd — pull request #305 by kou (2014-04-23 06:53:49+00:00)
Title: in_forward: use AsyncWatcher to break event loop instead of blocking timeout

refs #297

Blocking timeout approach causes needless loop break each 0.5
seconds. It is not effective.

AsyncWatcher approach doesn't cause any needless loop break. It just
causes a loop break on shutdown.

https://github.com/fluent/fluentd/pull/297#issuecomment-40694681 says
loop break approach doesn't increase CPU LOAD. So this is just a
trivial problem...

NOTE: We can use the AsyncWatcher approach in in_stream and
in_syslog. If we apply the AsyncWatcher approach to them, we can
improve "rake base_test" speed. It takes 683s without the AsyncWatcher
approach on Travis CI. It takes 80s with the AsyncWatcher approach on
my environment.