Subject: | No IPv6 connections to Gearmand possible |
Date: | Wed, 01 Aug 2012 10:45:39 +0200 |
To: | <bug-Gearman [...] rt.cpan.org> |
From: | "Melanie Bernkopf" <Melanie.Bernkopf [...] jku.at> |
Hello,
this is not exactly a bug report it is more a proposal of a patch.
We have some Servers using geamand. It is a policy that all software
we use has to support ipv6. Unfortunatly one of the most important
part of Software is using Gearman::Worker and ist was not possible
to establish ipv6 connections.
I had a look at the code and it was not very hard to solve there need
only 6 lines to be changed and one dependency needs to be changed.
Attached to this mail you find the patchfile with the changes I propose.
Actions taken:
change use IO::Socket::INET to use IO::Socket::INET6
add field multihomed
open socket with added option:
my $sock = IO::Socket::INET6->new(PeerAddr => $ipport,
Timeout => 1,
Multihomed => 1);
After this it was possible to connect using IPv6 as well as IPv4.
Best Regards
Melanie Bernkopf
Message body is not shown because sender requested not to inline it.