Welcome! Log In Create A New Profile

Advanced

Re: what's the meaning ? ctx->srv conf = cscfp[s]->ctx->srv conf

eagle sbc
December 22, 2010 10:54PM
hi, garry:

That code is for changing the context of 'cf', and make the 'cf'
appropriate for the function 'merge_srv_conf'. I can't see any thing matters
can cause memory leak unless the "merge_srv_conf" function that the modules
provide did this.


On Thu, Dec 23, 2010 at 11:08 AM, garry.lgr <nginx-forum@nginx.us> wrote:

> hi~~, now I'm reading the code of nginx-0.9.1.
>
> I readed the code "ctx->srv_conf = cscfp[s]->ctx->srv_conf" at line
> 593 in the ngx_http.c .
> but I really don't understand it's meaning.
>
> Who can tell me why do this? I find it will make memory leak.
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,160626,160626#msg-160626
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Re: what's the meaning ? ctx->srv conf = cscfp[s]->ctx->srv conf

eagle sbc December 22, 2010 10:54PM

Re: what's the meaning ? ctx->srv conf = cscfp[s]->ctx->srv conf

garry.lgr December 23, 2010 01:46AM

Re: what's the meaning ? ctx->srv conf = cscfp[s]->ctx->srv conf

Igor Sysoev December 23, 2010 02:16AM

Re: what's the meaning ? ctx->srv conf = cscfp[s]->ctx->srv conf

garry.lgr December 23, 2010 02:51AM

Re: what's the meaning ? ctx->srv conf = cscfp[s]->ctx->srv conf

Igor Sysoev December 23, 2010 03:50AM

Re: what's the meaning ? ctx->srv conf = cscfp[s]->ctx->srv conf

garry.lgr December 23, 2010 05:09AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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