antirez/hiredis — comment on commit b3290392d9023f47b0840912311138ff58ecbfe3
File:  line 0
By pietern:

I don't know why you get EGAIN, but that it returns with an error is definitely expected. Hiredis on master uses `select(2)` to find out if a connection could be made in time, and returns an error otherwise. You can always increase the timeout if you need to.