perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <>
Subject Re: CLEANUP subroutine delaying response
Date Mon, 12 Jul 2004 19:49:54 GMT
> Hi,
> I have an embperl page that does some stuff, and then spits out a
> redirect using $http_headers_out{'Location'}. From
> it was my
> understanding that any code I defined in a CLEANUP subroutine would be
> run after the response was sent to the client, however when I've
> tested it by putting in the page  [! sub CLEANUP { sleep 15; } !] the
> redirect isn't issued for 15 seconds. Please would somebody take pity
> on me and explain what I'm missing?

You don't miss anything. The docs describes how it should be and how it was
in Embperl 1.3. This behaviour seems to be broken in 2.0. To verify this
could just try to set the dbgFlushOutput flag in Embperl_Debug. Does this
change anything (other than the fact that everything gets slower)?

If yes, I should be able to fix it.



Gerald Richter            ecos electronic communication services gmbh
IT-Securitylösungen * Webapplikationen mit Apache/Perl/mod_perl/Embperl

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:          Voice:   +49 6133 939-122
WWW:      Fax:     +49 6133 939-333
ECOS BB-5000 Firewall- und IT-Security Appliance:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message