Welcome! Log In Create A New Profile

Advanced

Re: Thread Pool memory ownership

Maxim Dounin
June 01, 2023 10:08AM
Hello!

On Thu, Jun 01, 2023 at 09:29:58PM +1000, Mathew Heard wrote:

> Thank you,
>
> I understand and it makes sense.
>
> Do you have any advice for how third party modules could acheive the same?
> The blocked field might be safe to use within other phases but it's
> difficult to fully verify.
>
> I'm no longer using that module (having found an alternative) but I'm
> willing to push an issue to them in the spirit of oss.

For http, using r->blocked to prevent request from being freed is
the correct and the only available approach.

> Perhaps a comment in the nginx developer docs regarding the correct way to
> get memory for a thread pool task would be a good idea? It seems like a
> common problem for which there is limited examples for reference.

While it might be, I doubt there are people willing to and
qualified enough to work on this. In general, nginx is documented
in C and commit logs, and existing developer docs only explain
some basic concepts.

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

Thread Pool memory ownership

splitice 287 May 30, 2023 11:28AM

Re: Thread Pool memory ownership

Maxim Dounin 87 May 30, 2023 10:16PM

Re: Thread Pool memory ownership

splitice 88 June 01, 2023 07:32AM

Re: Thread Pool memory ownership

Maxim Dounin 101 June 01, 2023 10:08AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 192
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