Re: Re: Non Blocking write in apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Yann,

42Kb works for me. Thanks for your support.

Regards,
Hemant

On Mon, Sep 17, 2018 at 9:16 PM Hemant Chaudhary <hemantdude.chaudhary@xxxxxxxxx> 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.dev@xxxxxxxxx> wrote:
Hi,

On Mon, Sep 17, 2018 at 1:51 PM Hemant Chaudhary
<hemantdude.chaudhary@xxxxxxxxx> 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-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux