Welcome! Log In Create A New Profile

Advanced

Re: Upstream module usage to process data

Maxim Dounin
May 31, 2017 08:54AM
Hello!

On Wed, May 31, 2017 at 08:22:07AM -0400, isolomka wrote:

> Does upstream works correctly with thread pool enabled?

Yes, it does.

> I see some strange validation in ngx_http_upstream_init_request()
> if (r->aio) {
> return;
> }
> that flag is set when thread pool is enabled.

The flag indicates that an aio operation (or thread operation) is
in progress. In ngx_http_upstream_init_request() it means that
reading of cache file header is currently in progress, and not yet
complete. The flag will be cleared once reading is complete.

Note that if you are trying to use thread pools in your own code,
it might be tricky to do it correctly, especially if you are
trying to do so from an input filter (likely won't be possible).

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

Upstream module usage to process data

isolomka May 29, 2017 06:04AM

Re: Upstream module usage to process data

Maxim Dounin May 29, 2017 07:58AM

Re: Upstream module usage to process data

isolomka May 30, 2017 03:45AM

Re: Upstream module usage to process data

Maxim Dounin May 30, 2017 03:00PM

Re: Upstream module usage to process data

isolomka May 31, 2017 08:22AM

Re: Upstream module usage to process data

Maxim Dounin May 31, 2017 08:54AM

Re: Upstream module usage to process data

isolomka May 31, 2017 09:00AM

Re: Upstream module usage to process data

Maxim Dounin May 31, 2017 09:22AM

Re: Upstream module usage to process data

isolomka May 31, 2017 09:25AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 300
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready