On Thu, Apr 17, 2008 at 12:35:47AM +0300, Niko Tyni wrote: > I don't know if this is intentional hiding or a bug. We should ask > upstream. POE::Resource::Sessions (where KR_SESSIONS lives) is documented > to be an internal module without any public interface. > > A quick patch attached; I assume upstream intends to remove those > _preload() functions instead of calling them but this pinpoints the problem. > > I have verified that the patch fixes libpoe-api-peek-perl while not > breaking the libpoe-perl test suite itself.
Argh, here's the actual patch. Cheers, -- Niko Tyni [EMAIL PROTECTED]
diff --git a/lib/POE/Resource/Sessions.pm b/lib/POE/Resource/Sessions.pm index c5bac81..ef358b2 100644 --- a/lib/POE/Resource/Sessions.pm +++ b/lib/POE/Resource/Sessions.pm @@ -39,6 +39,7 @@ sub SS_ID () { 5 } sub _data_ses_preload { $POE::Kernel::poe_kernel->[KR_SESSIONS] = \%kr_sessions; } +_data_ses_preload(); ### End-run leak checking.