gosexy / redis

Redis client for Go that maps the full redis command list into equivalent Go functions.
MIT License
167 stars 44 forks source link

ERR Protocol error: too big inline request #3

Closed denro closed 11 years ago

denro commented 11 years ago

Hi, don't know if this is a problem related to my crappy code, these go-bindings, hiredis or redis:

When calling a lot of redis commands, maybe a few thousand a second, through a single connection I get this strange error: Protocol error: too big inline request.

While trying to debug this i find that the error is being raised in redis when the queue(?) goes too big or at least exceeds a constant named REDIS_INLINE_MAX_SIZE: https://github.com/antirez/redis/blob/unstable/src/networking.c#L892-L900

is this something i should be thinking about? not throwing too much at redis? would multiple connections do better? THANKS!

xiam commented 11 years ago

Haven't had this problem before, could you please attach an isolated example?

denro commented 11 years ago

unable to reproduce this at the moment, seems its just me... closing

oldunclez commented 9 years ago

How do you send commands to redis ? something like cat abc.txt | redis-cli --pipe ? if so , have you run unix2dos for abc.txt ?

cansin commented 9 years ago

@sosogh thanks, I was having a similar problem and running unix2dos on the input file fixed it for me.