Bug 26400 - Apache TimeOut is too low for Plack
Summary: Apache TimeOut is too low for Plack
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-07 01:55 UTC by David Cook
Modified: 2020-09-07 02:15 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.