Welcome! Log In Create A New Profile

Advanced

Re: make ngx_pool clear2

All files from this thread

File Name File Size   Posted by Date  
diff.patch 4.2 KB open | download liuyujun 06/04/2019 Read message
Maxim Dounin
June 04, 2019 06:20AM
Hello!

On Tue, Jun 04, 2019 at 04:38:21PM +0800, liuyujun wrote:

> hello. everybody here?
>
> example before:
> for (p = pool; p; p = p->d.next) {
> p->d.last = (u_char *) p + sizeof(ngx_pool_t);
> p->d.failed = 0;
> }
>
>
>
>
> after:
> for (p = &pool->d; p; p = p->next) {
> if (p == &pool->d) {
> p->last = (u_char *) p + sizeof(ngx_pool_t);
> } else {
> p->last = (u_char *) p + sizeof(ngx_pool_data_t);
> }
> p->failed = 0;
> }

https://trac.nginx.org/nginx/ticket/1594

[...]

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

make ngx_pool clear2 Attachments

liuyujun June 04, 2019 04:40AM

Re: make ngx_pool clear2

Maxim Dounin June 04, 2019 06:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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