I find a couple of lines confusing while reading the slab allocator's code. 96 p = (u_char *) pool + sizeof(ngx_slab_pool_t); 97 size = pool->end - p; ... 110 p += n * sizeof(ngx_slab_page_t); 111 112 pages = (ngx_uint_t) (size / (ngx_pagesize + sizeof(ngx_slab_page_t))); 113 114 ngx_memzero(p, pages * sizeofby duhoobo - Nginx Development
On Wed, Jul 14, 2010 at 7:01 PM, Srebrenko Šehić <ssehic@gmail.com> wrote: > On Wed, Jul 14, 2010 at 4:15 AM, Weibin Yao <nbubingo@gmail.com> wrote: > > Hi, > > > See this module as an example: > > http://github.com/cep21/healthcheck_nginx_upstreams > > Yeah. I had a look at that, but that module does an active health > check. All I want is to queryby duhoobo - Nginx Development
Best regards. On Wed, Jul 14, 2010 at 10:38 PM, Hungpo DU <alecdu@gmail.com> wrote: > > > > On Wed, Jul 14, 2010 at 7:01 PM, Srebrenko Šehić <ssehic@gmail.com> wrote: > >> On Wed, Jul 14, 2010 at 4:15 AM, Weibin Yao <nbubingo@gmail.com> wrote: >> >> Hi, >> >> > See this module as an example: >> > http://github.com/cep2by duhoobo - Nginx Development
> > > >> > I am a new pie to everything here, so please just ignore anything what >> i've >> > done improperly. >> > >> > Serveral days ago, when I was debugging my module, I crash the nginx >> process >> > by change. I am playing with source code 0.8.36. then I tried the same >> thing >> > under 0.8.44, crash happeneby duhoobo - Nginx Development