andymccurdy/redis-py — pull request #394 by ansATgit (2013-10-25 08:05:14+00:00)
Title: Better message on Protocol error

In my setup, recently I got lot of 'Protocol error' (and pipeline.execute - with lot of rpush failed).
However, it wasn't apparent what it meant, until I printed the response along with 'Protocol error' in connection.py.
Found it was giving 'Out of memory' error and then checked that redis configuration had pretty low maxmemory while my system was using lot more and hence lots of protocol error (OOM).

IMO, printing the response, byte along with Protocol error would be much more informative and helpful and it should be included.

As a side note, I just increased maxmemory by 4 times and things are cool.