[Jifty-commit] r6958 - jifty/trunk/lib/Jifty
Jifty commits
jifty-commit at lists.jifty.org
Fri May 8 01:52:47 EDT 2009
Author: alexmv
Date: Fri May 8 01:52:47 2009
New Revision: 6958
Modified:
jifty/trunk/lib/Jifty/Dispatcher.pm
Log:
Flush and close the client connection before running after{} blocks
Modified: jifty/trunk/lib/Jifty/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Dispatcher.pm (original)
+++ jifty/trunk/lib/Jifty/Dispatcher.pm Fri May 8 01:52:47 2009
@@ -867,11 +867,11 @@
}
# Close the handle down, so the client can go on their merry way
- # XXX TODO FIXME: Doing this causes tests to explode with "message
- # type 0x32 arrived from server while idle", which is a mesage
- # from Postgres. It's unclear why Pg cares that we closed STDOUT,
- # but this yak is too big to shave right now.
- #close STDOUT unless Jifty->web->request->is_subrequest;
+ unless (Jifty->web->request->is_subrequest) {
+ Jifty->handler->buffer->flush_output;
+ close(STDOUT);
+ $Jifty::SERVER->close_client_sockets if $Jifty::SERVER;
+ }
# Cleanup
$self->_handle_stage('CLEANUP');
More information about the Jifty-commit
mailing list