tarcieri/cool.io — pull request #29 by sonots (2014-04-12 20:11:32+00:00)
Title: [WIP] timeout option for Coolio::Loop#run_once

@repeatedly I implemented the timeout option for Coolio::Loop#run_once to solve the problem https://github.com/fluent/fluentd/pull/257

The implementation is basically porting from celluloid/nio4r. See https://github.com/celluloid/nio4r/blob/master/ext/nio4r/selector.c#L310-L372

I also added `spec/tcp_server_spec.rb` for the test of timeout option.

NOTE: This is still WIP status because I will try this code on my production environment on next Monday, but could you review this beforehand?