Hi, while testing the PerlCleanupHandler in HTML::Mason:
<%init>
$r->push_handlers(PerlCleanupHandler => \&sleeptest);
sub sleeptest {
my $r = shift;
$r->warn("BEFORE SLEEP");
sleep(10);
$r->warn("AFTER SLEEP");
};
</%init>
I've noticed that the page only finishes loading after the
PerlCleanupHandler has completely executed. A per the documentation the
cleanup is code is supposed to happen after the client is gone, not
while he's waiting.
There might be some mason-specific issue at play here, but I figured I'd
check on this list as well for any known PerlCleanupHandler gotcha.
Thanks,
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.