DevHeads.net

Get request of large file size greater than 100KB

Hi All,

I am trying to access large file(get request) of large file. This is
working properly if size of file is less than 52KB. But size greater than
52KB is giving me error 4022.

I have debugged and come to know that writev function can write maximum
upto 52KB only. Therefore I changed the default value of
THRESOLD_MAX_BUFFER to 42KB so that my writev will not reach to 52KB.
THRESOLD_MAX_BUFFER to 42KB helps me to solve the issue for PUT request.

But in get request while accessing large file, size of brigade crosses
52KB. As 52KB is greater than THRESOLD_MAX_BUFFER(42KB). It is trying to
flush the data. But limit of writev on my OS is maximum 52KB only.
Therefore it is giving 4022 error.

Is there any way where I can control apache so that size of brigade will
never cross 52KB? or any other approach/ configuration parameter can be
used to solve this issue ?

Thanks
Hemant

Comments

Re: Get request of large file size greater than 10

By Googalar at 09/27/2018 - 10:24

Perhaps this thread will help you out...
<a href="https://stackoverflow.com/questions/33811543/php-and-mod-fcgid-ap-pass-brigade-failed-in-handle-request-ipc-function#" title="https://stackoverflow.com/questions/33811543/php-and-mod-fcgid-ap-pass-brigade-failed-in-handle-request-ipc-function#">https://stackoverflow.com/questions/33811543/php-and-mod-fcgid-ap-pass-b...</a>
On Thu, Sep 27, 2018 at 1:15 AM Hemant Chaudhary
<hemantdude. ... at gmail dot com> wrote:

Re: Get request of large file size greater than 10

By Hemant Chaudhary at 09/27/2018 - 12:59

Hi,

I have solved the problem by changing MAX_IOVEC_TO_WRITE value to 6 from
16. Now maximum data will be 8KB*6=48KB, which is less than writev max
limit of 52KB.

Thanks
Hemant

Re: Get request of large file size greater than 10

By William A. Rowe Jr. at 09/28/2018 - 14:05

I've looked at the httpd and apr code, what source package were you using
which started from a default MAX_IOVEC_TO_WRITE (APR_MAX_IOVEC_SIZE?) of 6?

TIA,

Bill

On Thu, Sep 27, 2018 at 11:59 AM Hemant Chaudhary <