Hi All, I have a limitation for writev and readv to 52KB. I was getting error for writev, therefore I changed THRESHOLD_MAX_BUFFER to 42KB. After that I was not getting any error. Now in GET request of large file, I am getting the same 4022 error. This may be because of readv function.
Is there any buffer/place where I can restrict readv to 42KB only,so that it will not cross 52KB. Thanks Hemant On Tue, Sep 18, 2018 at 2:18 PM Hemant Chaudhary < hemantdude.chaudh...@gmail.com> wrote: > Hi Yann, > > 42Kb works for me. Thanks for your support. > > Regards, > Hemant > > On Mon, Sep 17, 2018 at 9:16 PM Hemant Chaudhary < > hemantdude.chaudh...@gmail.com> wrote: > >> If it will flush data then at what condition it will go to apr_poll >> function ?? >> >> What I understand is that if buffer is filled with 52KB data and writev >> is not ready then it should go into apr_poll(). >> >> >> Now the problem may exist with 42KB also. >> >> I hope I am explained my issue. >> >> Thanks >> Hemant >> >> On Sep 17, 2018 6:58 PM, "Yann Ylavic" <ylavic....@gmail.com> wrote: >> >>> Hi, >>> >>> On Mon, Sep 17, 2018 at 1:51 PM Hemant Chaudhary >>> <hemantdude.chaudh...@gmail.com> wrote: >>> > >>> > in the apache error_log with trace6, it is trying to flush because it >>> reached thresold_max_buffer. But at the same time, it is adding data in >>> buffer which increases it size to to more than 52KB and fails on NonStop. >>> >>> Yes, THRESHOLD_MAX_BUFFER is the limit *above* which the buffer is >>> flushed, but not the maximum number of bytes flushed... >>> >>> > How should I stop apache so that it should go to select function till >>> 52KB success. >>> >>> The simpler would be to take a 10K margin, like defining >>> THRESHOLD_MAX_BUFFER to 42K. >>> Otherwise, you need a patch like the one attached (untested)... >>> >>> Regards, >>> Yann. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org >>> For additional commands, e-mail: users-h...@httpd.apache.org >>> >>