new FilterHandlerTooBusy()
This filter is used to detected whether node.js event loop is busy or not.
Once toobusy is triggered, then the filter toobusy will refuse sequential requests,
and call next(err, resp) to pass err to error handler, indicating that server is too busy.
这个filter中,一旦检测到node.js中事件循环的请求等待队列过长,超过一个阀值时,就会触发toobusy。 一旦触发了toobusy,那么toobusy的filter中将终止此请求处理链,并在next调用中,传递错误参数
这个filter中,一旦检测到node.js中事件循环的请求等待队列过长,超过一个阀值时,就会触发toobusy。 一旦触发了toobusy,那么toobusy的filter中将终止此请求处理链,并在next调用中,传递错误参数
- Implements:
Methods
-
before(msg, session, next)
-
Before filter
Parameters:
Name Type Description msg
object message session
object next
function callback Function - Implements: