mloughran / em-hiredis

Eventmachine redis client
MIT License
221 stars 63 forks source link

Reconnect exceptions #35

Closed mdpye closed 9 years ago

mdpye commented 9 years ago

Depending on the type of problem creating a connection (DNS resolution vs timeout vs ...), EventMachine may create a connection and then report failure via a callback, or it may throw an exception immediately.

This commit fixes our handling of the second case, during reconnects. Initial connection may still throw.

NB: I've first merged the branch we've been tracking.

mdpye commented 9 years ago

Sorry, wasn't intending to submit against this repo.