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
 [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

Pull Requests

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 Dec 03 06:01:30 2024 UTC