Show all posts by user
Introduce yourselves
Page 1 of 1 Pages: 1
Results 1 - 6 of 6
I'm reading the nginx0.9.1 source code.
now I find a bug when I read the "ngx_parse_inet6_url" function at 914 line in ngx_inet.c.
the code don't correctly get the length of port when parsing the url.
for example:
the ipv6 url is : "[::FFFF:129.144.52.38]:8080/index.html"
the code: plz see the red color part
host = u->url.data + 1;
last = u->url.d
by
garry.lgr
-
Nginx Mailing List - English
Thanks, Igor Sysoev.
Now I understood your meaning. As a hidden parameter, that's very smart.
but I looked up the code of many http module files, don't find any where you use this .
Could you tell me where you use it ?
by
garry.lgr
-
Nginx Mailing List - English
http://blog.chinaunix.net/photo/6889_101223144343.jpg
I drawed a picture according to the code of the nginx-0.9.1. The top part in the picture is built in the ngx_http_block of ngx_http.c.
When the ngx_http_merge_servers function at line 277 is called, the ctx->srv_conf have hold the address of cf->ctx->srv_conf. After ctx->srv_conf = cscfp->ctx->srv_conf, ctx->srv_conf
by
garry.lgr
-
Nginx Mailing List - English
hi~~, now I'm reading the code of nginx-0.9.1.
I readed the code "ctx->srv_conf = cscfp->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.
by
garry.lgr
-
Nginx Mailing List - English