Share

A PHP beanstalkd Client

Code

Programming Languages: PHP

License: MIT License

Repositories

browse code, statistics svn co https://beanstalk.svn.sourceforge.net/svnroot/beanstalk beanstalk

browse code, statistics cvs -d:pserver:anonymous@beanstalk.cvs.sourceforge.net:/cvsroot/beanstalk login

cvs -z3 -d:pserver:anonymous@beanstalk.cvs.sourceforge.net:/cvsroot/beanstalk co -P modulename

Show:

What's happening?

  • Extraneous & causes PHP warning

    Line 1302 contains an extra & that triggers a PHP error.

    2009-07-27 23:15:11 UTC by markrose

  • Comment: reimplemented safe_read_message to fix various bugs

    I am attaching a new version of my patch. The old one could deadlock under certain circumstances under new PHP versions because the behavior of fread() has changed. With the new PHP behavior fread() will wait until it has read the number of bytes you wanted to read. This new patch solves this by using fgets() instead of fread().

    2009-06-18 19:48:09 UTC by nobody

  • reimplemented safe_read_message to fix various bugs

    I have reimplemented safe_read_message to fix various bugs. The original function does a busy-read on a non-blocking socket. Even though the implementation tries to usleep() in between it is still a busy loop. It manages to eat 80% CPU on my AMD quad-core just waiting for reserve() to return a job. This new implementation preserves the features of the original and fixes a couple of other bugs.

    2009-06-02 11:19:56 UTC by sander_marechal

Our Numbers