Limit error messages. Applying modified patch from seguer.
Limit error messages. Applying modified patch from seguer.

Modify error logging in socket to only keep a maximum of 200 in memory.

If you have a long-running worker (days.. weeks..) which encounters
errors, you would eventually have to kill the worker to free up memory.
Now, only the most recent errors are kept in-memory.

Original patch seguer/queue@ac2f174353cb3b6cb2e9098f90a217677c74d64c.

johnnyzheng/beanstalk,davidpersson/beanstalk