codehunte / ngx_white_black_list

add
38 stars 27 forks source link

a problem #1

Open labanyd opened 10 years ago

labanyd commented 10 years ago

node = ngx_slab_alloc(shpool, n); i think that it's wrong

labanyd commented 10 years ago

ngx_shmtx_lock(&shpool->mutex); // 452:ngx_white_black_list.c ngx_shmtx_lock(&pool->mutex); // 142:src/core/ngx_slab.c

it's a deadlock

labanyd commented 10 years ago

ngx_shmtx_lock(&shpool->mutex);
I delete this line and other unlock , the process run success!!