Skip Menu |

This queue is for tickets about the POE CPAN distribution.

Report information
The Basics
Id: 27250
Status: resolved
Priority: 0/
Queue: POE

People
Owner: Nobody in particular
Requestors: stro [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Socket6::AF_INET6/PF_INET6 check
Some systems have AF_INET6 but doesn't have PF_INET6. This lead to some problems, because it's assumed that PF_INET6 exists when AF_INET6 exists. Can you change POE/Wheel/SocketFactory.pm from line 46 to have both checked: # Provide dummy constants for systems that don't have them. BEGIN { eval { require Socket6; my $x = &Socket6::AF_INET6; }; if ($@) { *Socket6::AF_INET6 = sub () { ~0 }; } eval { require Socket6; my $x = &Socket6::PF_INET6; }; if ($@) { *Socket6::PF_INET6 = sub () { ~0 }; } } -- Serguei Trouchelle
Thanks for the patch. It's applied as revision 2193.