|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2010-01-22 15:36 UTC] peter dot urda at gmail dot com
  [2010-01-25 12:28 UTC] peter dot urda at gmail dot com
  [2010-01-25 12:30 UTC] peter dot urda at gmail dot com
  [2010-01-25 12:32 UTC] peter dot urda at gmail dot com
  [2017-01-10 08:21 UTC] kalle@php.net
 
-Status:      Assigned
+Status:      Suspended
-Assigned To: hradtke
+Assigned To:
  [2017-01-10 08:21 UTC] kalle@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 12:00:01 2025 UTC | 
Description: ------------ <?php // ------------------------------------------------------------------- // START Basic Client Creatio // Create Client $client = new GearmanClient(); $client->addServer("192.168.10.58","4730"); $client->addServer("192.168.10.141","4730"); // END Basic Client Creation // ------------------------------------------------------------------- // Start Tasks $client->addTaskBackground("reverse", "ereh saw adrU"); $client->addTaskBackground("reverse", "!dlroW olleH"); $client->addTaskBackground("reverse", "ENO-F"); $client->addTaskBackground("reverse", "Hello out world!"); $client->addTaskHighBackground("reverse", "!!!YTIROIRP HGIH SI SIHT"); // above line 3 more times... $client->addTaskLowBackground("reverse", "!!!ytiroirp wol si siht"); // above line 3 more times... // code removed... echo "Start Tasks!\n"; $client->runTasks(); // AT this point, if server 10.58 is DOWN, // the script Locks up, and sends zero tasks to be Q'd in Server 2. // Sometimes one random job makes it to the server, but that is it. ?> // end of script/program Reproduce code: --------------- http://pastebin.ca/1761938 (source code) http://pastebin.ca/1761941 (strace for failure, Server 10.58 is down, Server 10.141 is up but never gets the job) http://pastebin.ca/1761942 (strace for Success, Server 10.58 is up, Server 10.141 is up. 10.58 gets all jobs, server 10.141 gets zero, which is correctly done) Expected result: ---------------- Assuming Server #1 (10.58) is down, runTasks() should fire, send all the tasks to server #2, and finish running. Actual result: -------------- Script stops and hangs at runTasks(), and never finished. Job server #2 gets zero jobs.