Closed wanghuizzz closed 4 years ago
1.use "_flush_pending_flag" to avoid creating timer.at when too many timers pending. 2.use timer.every to execute flushing and reset "_flush_pending_flag". 3.add test that trigger "too many pending timers"
this commit log should be better: bugfix: avoiding too many pending timer errors by using ngx.timer.every.
bugfix: avoiding too many pending timer errors by using ngx.timer.every
1.use "_flush_pending_flag" to avoid creating timer.at when too many timers pending. 2.use timer.every to execute flushing and reset "_flush_pending_flag". 3.add test that trigger "too many pending timers"