miyagawa/AnyEvent-Redis — pull request #19 by leedo (2012-09-26 20:06:50+00:00)
Title: re-queue commands and reconnect on network error reading response

This fixes problems caused by a redis-server restart. Previously, a server restart would cause the first subsequent command to silently fail. The on_error handler is not invoked until the first read attempt is made. So now the on_error handler checks for commands that were waiting for a read and re-queues them and reconnects.