How can the nginx detect the stale event using 'instance'?

김수영 sykim at
Tue Feb 21 09:51:19 UTC 2012

These days, I am studying the nginx source code..

I think this code is very beautiful, and fully modulized.. BUT so it is difficult to follow the code.-_-;

BTW, In struct ngx_event_s, there is ‘unsigned instance:1;’..

I can’t understand how can the nginx detect the stale events using it.-_-;

Could you please explain the detection mechanism or give me a hint?

Senior Member of Engineering Staff
Storage System Research Team
Electronics and Telecommunications Research Institute

138 Gajeong-no, Yuseong-gu, Daejeon, 305-700 KOREA
Phone : 82-42-860-1682 Fax : 82-42-860-6699 
Mobile : 82-10-9696-3032 E-mail : sykim at
ETRI Homepage :

More information about the nginx-devel mailing list