Welcome! Log In Create A New Profile

Advanced

Nngix maybe dead lock in ngnix_event_timer

January 21, 2011 05:32AM
In file src/event/ngx_event_timer.c:
function:
void ngx_event_expire_timers (void)
{
.... ...
for ( ;; ) {

[color=#FF0000]ngx_mutex_lock(ngx_event_timer_mutex);[/color]

root = ngx_event_timer_rbtree.root;

[color=#FF0000]if (root == sentinel) {
return;
}[/color]
... ...
}

While timer rb-tree is empty, mutex_lock 'ngx_event_timer_mutex' would not unlock!

This bug is avaliable in every nginx version. Should fix it pls.
Subject Author Posted

Nngix maybe dead lock in ngnix_event_timer

ljzwaterbull January 21, 2011 05:32AM

Re: Nngix maybe dead lock in ngnix_event_timer

Piotr Sikora January 21, 2011 05:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 113
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready