From 70242f1ef13bab60b55ae219c479d3fcfc3bacb2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 9 Jul 2015 15:46:13 +0200 Subject: [PATCH] Dispatcher: FCGI Finish -> 10ms schneller im Browser --- SL/Dispatcher.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 17aaab0c6..e8725b5f3 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -318,6 +318,14 @@ sub handle_request { $::form->footer; + if ($self->_interface_is_fcgi) { + # fcgi? send send reponse on its way before cleanup. + $self->{request}->Flush; + $self->{request}->Finish; + } + + $::lxdebug->end_request; + # cleanup $::auth->save_session; $::auth->expire_sessions; @@ -329,8 +337,6 @@ sub handle_request { $::request = undef; Form::disconnect_standard_dbh; - $::lxdebug->end_request; - $self->_watch_for_changed_files; $::lxdebug->leave_sub; -- 2.20.1