redis/redis-rb — pull request #360 by aw (2013-09-03 04:03:49+00:00)
Title: Unix Domain Sockets should use readpartial

This has been bothering me for quite some time. I kept seeing/ignoring a certain message in debug logs:

`ruby.rb:49 - Resource temporarily unavailable - read would block`

:rage1:

After looking carefully, I noticed a fix using `readpartial` which was only applied to JRuby, even though this problem is for all unix domain sockets, not just JRuby.

I've included a fix below, let me know if it's adequate.