httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hemant Chaudhary <hemantdude.chaudh...@gmail.com>
Subject Re: [users@httpd] Re: Non Blocking write in apache
Date Fri, 14 Sep 2018 06:08:25 GMT
Hi Yann

I have tried to upload a file of 26.5mb on apache tomcat, which was
successfull.
I tried to proxy request to tomcat with same file. But get following error.
Attaching the error_log.

Can you please help me to understand where I am going wrong ?

Thanks
Hemant


On Wed, Sep 12, 2018 at 8:37 PM Yann Ylavic <ylavic.dev@gmail.com> wrote:

> On Wed, Sep 12, 2018 at 12:48 PM Hemant Chaudhary
> <hemantdude.chaudhary@gmail.com> wrote:
> >
> > Actually it is setting sock->timeout to 0 in writev_nonblocking() in
> core_filters.c.
> > arv = apr_socket_timeout_set(s, 0);
> >
> > Why does the default timeout  is changed and set to 0 ??
>
> Because writev_nonblocking() is really non-blocking and should return
> EAGAIN/EWOULDBLOCK when things start to block.
> But writev_nonblocking() is a local function, called (indirectly) by
> the core output filter which deals with EAGAIN appropriately.
>
> Why is it an issue for mod_proxy_http? EAGAIN remains local to the
> core filtering, but however mod_proxy_http always passes a FLUSH
> bucket at the end of the body, so everything should be fine at the
> core filter level...
>
>
> Regards,
> Yann.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Mime
View raw message