Subject: | Dies upon CLOSE() without _get_self() |
Date: | Fri, 20 Oct 2006 12:33:53 -0600 |
To: | bug-POE-Component-SSLify [...] rt.cpan.org |
From: | Eric Waters <ewaters [...] uarc.com> |
In using this module in the wild (a custom derivation of POE::Component::Jabber Server), I found that if my socket would go away, the code would die. I wanted it to stay alive and try and reestablish the socket w/ SSL. It looks like the problem is at:
File: POE-Component-SSLify-0.04/lib/POE/Component/SSLify/ClientHandle.pm
Line: 45-47
There's an assumption that $info is defined. But in my case above, $info for some reason wasn't defined. Not sure if this is a bug, but I'd suggest this change:
45,47c45,49
< Net::SSLeay::free( $info->{'ssl'} );
< Net::SSLeay::CTX_free( $info->{'ctx'} );
< close $info->{'socket'};
---
Show quoted text
> if ($info) {
> Net::SSLeay::free( $info->{'ssl'} );
> Net::SSLeay::CTX_free( $info->{'ctx'} );
> close $info->{'socket'};
> }
Eric Waters
--
Email signed with GnuPG key id 0x7FE92A42
http://www.vegcrew.net/~ewaters/pubkey.asc
Message body not shown because it is not plain text.