davidpersson/beanstalk — pull request #9 by danielbeardsley (2013-09-02 19:34:45+00:00)
Title: Detect _write() failures and return false

If we're gonna return false on errors, might as well check both
_write() and _read().

Mostly this was done because php generates a Notice on each write / read
call on a disconnected socket. 2 Notices per call was kinda annoying.

This also incorporates pull #4 (a one line change) because it looks and performs better.