This patch should fix it...
--- HTTP.pm.orig 2010-02-14 22:19:05.000000000 -0800
+++ HTTP.pm 2010-07-23 08:39:16.000000000 -0700
@@ -18,6 +18,7 @@
use POE::Component::Client::HTTP::RequestFactory;
use POE::Component::Client::HTTP::Request qw(:states :fields);
+use POE::Component::SSLify qw( SSLify_GetSocket );
BEGIN {
local $SIG{'__DIE__'} = 'DEFAULT';
@@ -341,7 +342,10 @@
$request->[REQ_CONNECTION] = $connection;
- my $peer_addr = getpeername($new_wheel->get_input_handle());
+ #my $peer_addr = getpeername($new_wheel->get_input_handle());
+ my $socket = $new_wheel->get_input_handle();
+ my $peer_addr = $request->scheme ne 'https' ? getpeername($socket) :
+ getpeername( SSLify_GetSocket($socket) );
if (defined $peer_addr) {
my ($port, $iaddr) = sockaddr_in($peer_addr);
$request->[REQ_PEERNAME] = inet_ntoa($iaddr) . "." . $port;
--- HTTP.pm.orig 2010-02-14 22:19:05.000000000 -0800
+++ HTTP.pm 2010-07-23 08:39:16.000000000 -0700
@@ -18,6 +18,7 @@
use POE::Component::Client::HTTP::RequestFactory;
use POE::Component::Client::HTTP::Request qw(:states :fields);
+use POE::Component::SSLify qw( SSLify_GetSocket );
BEGIN {
local $SIG{'__DIE__'} = 'DEFAULT';
@@ -341,7 +342,10 @@
$request->[REQ_CONNECTION] = $connection;
- my $peer_addr = getpeername($new_wheel->get_input_handle());
+ #my $peer_addr = getpeername($new_wheel->get_input_handle());
+ my $socket = $new_wheel->get_input_handle();
+ my $peer_addr = $request->scheme ne 'https' ? getpeername($socket) :
+ getpeername( SSLify_GetSocket($socket) );
if (defined $peer_addr) {
my ($port, $iaddr) = sockaddr_in($peer_addr);
$request->[REQ_PEERNAME] = inet_ntoa($iaddr) . "." . $port;