IPv6 Client / Worker
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gearman |
New
|
Undecided
|
Unassigned |
Bug Description
Been using Gearman for a while now, so it's nothing new... However I just noted my Client / Workers are not talking to each other when using IPv6 addresses. So as a test I setup the examples found here -> http://
I have 2 machines, same network, sitting next to each other. I can confirm each server can see each other.... ping, etc.. all work.
I changed the addServer on both machines to:
$gmclient-
I also tried
$gmclient-
Gearman is running on both machines and I am accepting connections on all IP's
When I start the worker I'm getting the expected Waiting for job...
On the client I'm getting:
Sending job
RET: 13
So as another test I setup an IPv4 network and redid the tests, only changing the addServer to addServer(
Restarted the worker and tried the client, it worked! But the problem here is that we don't use any IPv4 addresses, we are strictly on an IPv6 network
I can confirm if I run both Client / Worker on the same machine and set the addServer to ::1, it works too.
The only errors I do see in the php_error_log are the following:
When I set the IPv6 to have [ ] around it I see this:
[07-Feb-2013 15:09:57 America/Chicago] PHP Warning: GearmanClient:
[07-Feb-2013 15:09:57 America/Chicago] PHP Warning: GearmanClient:
Without using the [ ] around the IPv6 address I'm getting an exception stack trace:
Stack trace:
#0 /root/client.
#1 {main}
thrown in /root/client.php on line 6
On line 6:
$gmclient-
PHP is built with IPv6 support, all other IPv6 related services are running as expected, only gearman seems to be having an issue.
If there is anything further I can supply please let me know and I'll get the details.
Sorry I should of added I'm using:
PHP 5.4.11
Gearman C Client 1.1.4
Gearman PHP Extension 1.1.1
Archlinux