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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alf at tek dot no
New email:
PHP Version: OS:

 

 [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: Fri Apr 26 16:01:29 2024 UTC