projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Request handling: bei zu hohem Speicherverbrauch erst flushen, dann beenden
[kivitendo-erp.git]
/
dispatcher.fpl
diff --git
a/dispatcher.fpl
b/dispatcher.fpl
index
5e384ce
..
cd910cc
100755
(executable)
--- a/
dispatcher.fpl
+++ b/
dispatcher.fpl
@@
-64,7
+64,10
@@
$dispatcher->pre_startup_checks;
my $request = FCGI::Request();
while ($request->Accept() >= 0) {
$dispatcher->handle_request($request);
- exit if _memory_usage_is_too_high();
+ if (_memory_usage_is_too_high()) {
+ $request->Flush();
+ last;
+ }
}
1;