php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67844 GearmanWorker::addFunction - timeout bug
Submitted: 2014-08-14 17:17 UTC Modified: 2017-01-10 08:24 UTC
From: alf at tek dot no Assigned:
Status: Suspended Package: gearman (PECL)
PHP Version: 5.4.31 OS: Scientific Linux 6.5 (2.6.32)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
49 - 45 = ?
Subscribe to this entry?

 
 [2014-08-14 17:17 UTC] alf at tek dot no
Description:
------------
This is a weird bug. I could also be a bug in gearmand, it's hard to say.

http://php.net/manual/en/gearmanworker.addfunction.php

If you supply GearmanWorker::addFunction with a $timeout argument, somehow it seems to mess up 1 or 2 gearmand threads/processes.

I stumbled upon this bug while using GearmanManager. The issue is also described here:
https://github.com/brianlmoon/GearmanManager/issues/77

GearmanManager has a config.ini which again has a "timeout" setting. When this is set, it sends it to GearmanWorker::addFunction, which "hangs" gearmand.

I spend a whole day debugging this, and this is how far I came. Happy to help out further if needed.

Best regards,
Alf Olsen
Oslo, Norway


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-10 08:24 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-01-10 08:24 UTC] kalle@php.net
The gearman extension have not had much activity in the past few years, so I'm taking the safe bet that this is no longer under active development (as I don't consider the typo fixes on the github repo an active development), besides that it also targets unsupported PHP versions. Please unsuspend this report in case it begins to blossom with life once more
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 08:01:30 2024 UTC