Apache 2.4 timeout
robert at webtent.org
Sun Apr 14 18:48:17 UTC 2019
Robert Fitzpatrick via freebsd-questions wrote on 4/14/2019 12:36 PM:
> The issue is the file upload give 'Unknown error' when uploading any
> file that exceeds exactly 22 seconds. After I download the project demo,
> I adjusted these settings in the demo app to allow a large mp4 video to
> be uploaded...
> acceptFileTypes: /(\.|\/)(gif|jpe?g|png|mp4)$/i,
> maxFileSize: 999000000,
> My tested example was a mp4 video file just over 200MB in size and gives
> the error after about 80% and exactly 22 seconds into the download. I
> did find this 'RequestReadTimeout' setting in Apache and set higher
> header and body settings:
> <IfModule reqtimeout_module>
> # RequestReadTimeout header=20-40,MinRate=500 body=20,MinRate=500
> RequestReadTimeout header=60-120,MinRate=500 body=60,MinRate=500
> But same result after an Apache restart. Can anyone suggest what is
> needed to get this project working? I have downloaded the project to
> another CentOS7 server where is works fine.
Although changing the setting above did not work, disabling the
reqtimeout module did. When enabled, with or without the settings in the
extras/httpd-default.conf file, the larger files fail with the error.
I have confirmed with file system snapshots the module was enabled even
before the issue existed according to users, after we had done the
latest pkg update of apache24 from 2.4.33 to 2.3.39. A bug? Not sure how
to downgrade apache24 to test.
More information about the freebsd-questions