Apache2::Controller::Log::DetectAbortedConnection - helper handler for detecting cancelled connections to the client.
Version 1.001.001
You don't need to use this handler, probably.
This is pushed internally by Apache2::Controller::Session to detect in the PerlLogHandler phase if the connection has been broken to the client before the server closes the connection.
So far it's only useful for the session, and because we now use a PerlLogHandler for session saving instead of the PerlCleanupHandler in prior versions. Using a PerlCleanupHandler caused problems with synchronicity since the test scripts would fire off a new request before Apache was done processing the session saving from the prior request... I don't know why it did this under prefork with Apache::Test, but it did.
PerlLogHandler
PerlCleanupHandler
Apache::Test
So, I'm leaving it separate just in case it is useful for something else in the future.
Sets $r->pnotes->{a2c}{connection_aborted} with the boolean results of $r->connection->aborted() and returns.
$r->pnotes->{a2c}{connection_aborted}
$r->connection->aborted()
I am not entirely sure why to cache this except that I couldn't figure out any other way to manually override this state even if you didn't abort the connection, if that's useful. I may be over-planning here.
Apache2::Controller::Session,
Apache2::Controller,
Mark Hedges, <hedges at formdata.biz>
<hedges at formdata.biz>
Copyright 2008-2010 Mark Hedges, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This software is provided as-is, with no warranty and no guarantee of fitness for any particular purpose.
To install Apache2::Controller, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache2::Controller
CPAN shell
perl -MCPAN -e shell install Apache2::Controller
For more information on module installation, please visit the detailed CPAN module installation guide.