bugfix update in Fedora EPEL 6 for php-pda-pheanstalk

Status: stable 4 months ago

v3.2.1 Bugfix for socket timeouts

This release fixes a bug that could, in certain cases, cause data to be lost from a connection. Due to the way beanstalk reservations work no data is permanently lost and the main effect of this would be a delay in task execution.

Thanks for pointing out the problem @mialex!

v3.2.0 Maintenance release

This is a maintenance release.

One issue that was fixed in this release was the risk of an infinite loop in Connection::getLine(). Now after a timeout, configurable via ini-set('default_socket_timeout', $timeout), the getLine() function will throw an exception to bring it in line with Connection::read() and Connection::write().

If your worker has to potentially wait a long time for jobs you might start to see exceptions that you did not see before. Even though this behavior is a change it allows you to actually detect errors instead of just waiting forever.

My worker runs via a supervisor

If your worker is currently managed by a supervisor (ie, it restarts after it dies), set your socket timeout to a value like 3600. This means that if the worker doesn't get jobs for 12 hours, it will be restarted 12 times, but in return, if the connection is dead the worker will restart after at most 1 hour and resume working.

My worker does not run via a supervisor

If a crash of your worker results in manually having to restart it you should really change the configuration. One option that partially resolves this is properly catching errors in reserve(), socket errors are in that sense nothing new, the changes in this version just make them more consistent in certain cases.

Comments 7

This update has been submitted for testing by siwinski.

This update test gating status has been changed to 'waiting'.

This update test gating status has been changed to 'ignored'.

This update has been pushed to testing.

This update has reached 14 days in testing and can be pushed to stable now if the maintainer wishes

This update has been submitted for stable by siwinski.

This update has been pushed to stable.

Add Comment & Feedback

Please login to add feedback.

Content Type
Test Gating
Submitted by
Update Type
Update Severity
stable threshold: 3
unstable threshold: -3
Autopush (karma)
Autopush (time)
submitted 4 months ago
in testing 4 months ago
in stable 4 months ago

Automated Test Results