Doc #68322 [Opn->Sus]: GearmanWorker::addServer involves socket I/O, different than documentation
| From: | kalle@php.net | Date: | Tue, 10 Jan 2017 08:24:59 +0000 |
| Subject: | Doc #68322 [Opn->Sus]: GearmanWorker::addServer involves socket I/O, different than documentation | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14322@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68322&edit=1
ID: 68322
Updated by: kalle@php.net
Reported by: minhao dot zhang at qq dot com
Summary: GearmanWorker::addServer involves socket I/O,
different than documentation
-Status: Open
+Status: Suspended
Type: Documentation Problem
Package: gearman
Operating System: Mac OSX 10.9
PHP Version: 5.5.18
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2014-10-29 10:01:48] minhao dot zhang at qq dot com
Description:
------------
---
From manual page: http://www.php.net/gearmanworker.addserver
---
GearmanWorker::addServer will establish a TCP connection with gearmand server. This is not the same
behaviour as documentation says.
run test script and try the following from your gearmand server:
lsof -i tcp | grep gearman
you can notice that a TCP connection is already established even if we do not call
$gearman_worker->work()
Test script:
---------------
<?php
$gearman_worker = new GearmanWorker();
$gearman_worker->addServer('localhost', 4730);
sleep(100);
Expected result:
----------------
no connection is established when addServer is called alone
Actual result:
--------------
a TCP connection is observed when addServer is called alone
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68322&edit=1