Bug 26400

Summary: Apache TimeOut is too low for Plack
Product: Koha Reporter: David Cook <dcook>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26128
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15218
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22417
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description David Cook 2020-09-07 01:55:40 UTC
While investigating Bug 26128, I discovered a bug in Apache httpd's mod_cgi (https://bz.apache.org/bugzilla/show_bug.cgi?id=64709), which means that Apache's TimeOut directive does not work correctly in mod_cgi. 

In practice, CGI scripts in Apache httpd get 2 timeouts, which means that they effectively get 600 seconds rather than the default 300 seconds (as defined in the configuration of the Debian package apache2). 

In order for Plack Koha to have the same timeout duration as the buggy mod_cgi, we should set "ProxyTimeout 600" in the Apache Plack configuration. This should harmonize performance expectations, so that CGI is not chosen over Plack unnecesssarily.
Comment 1 David Cook 2020-09-07 02:00:23 UTC
Note that I've reproduced the mod_cgi problem in koha-testing-docker, which uses apache2 2.4.25. I've also reproduced it in the latest Apache httpd, which is 2.4.46. 

So everyone will be affected the same by this I reckon.