Welcome! Log In Create A New Profile

Advanced

Re: upgrade to 1-9.15 caused block requests

Maxim Dounin
November 21, 2018 02:28PM
Hello!

On Wed, Nov 21, 2018 at 01:47:40PM -0500, Ortal wrote:

> Hi,
> I am developing my own nginx module, I am getting a post requests, parse the
> data and send 204.
> I worked with nginx version release-1.9.15, and I am trying to upgrade to
> version release-1.15.5.
> After the upgrade post requests with payload larger then 1M are getting
> blocked.
> From the nginx log:
> 2018/11/21 20:03:10 [debug] 13470#0: *2 http reading blocked

Most likely, this is a bug in your module which started to
consistently manifest itself after the upgrade.

The "http reading blocked" message is printed by the
ngx_http_block_reading() function, which is used as a request read
event handler when nginx doesn't want read anything from the
network. If you see this message and think this is a problem,
most likely you've forgot to update request event handlers at some
point.

In particular, a common mistake is to try to read the request body
in a phase handler, and then try to continue request processing by
calling ngx_http_core_run_phases() without restoring the
r->write_event_handler as well.

If you need further help with finding out what goes wrong,
consider posting code of your module (preferably a minimal yet
working test module) and a full debugging log which demonstrates
the problem.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

upgrade to 1-9.15 caused block requests

Ortal November 21, 2018 01:47PM

Re: upgrade to 1-9.15 caused block requests

Maxim Dounin November 21, 2018 02:28PM

Re: upgrade to 1-9.15 caused block requests

Ortal November 22, 2018 07:15AM

Re: upgrade to 1-9.15 caused block requests

Maxim Dounin November 22, 2018 08:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 187
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready