pika/pika — pull request #471 by michaelplaing (2014-05-14 21:01:19+00:00)
Title: libev_connection: reset_io_watcher

Under heavy load with multiple event loops, libev's io_watcher.stop() can very occasionally fail to complete in time for the subsequent set(), raising an exception. This patch adds retry logic.