server.setTimeout([msecs][, callback])
msecs<number> 默认值:120000(2 分钟)callback<Function>- 返回: <Http2Server>
用于设置 http2 服务器请求的超时值,设置 msecs 毫秒后 Http2Server 上没有活动时调用的回调函数。
给定的回调已注册为 'timeout' 事件的监听器。
msecs<number> Default:120000(2 minutes)callback<Function>- Returns: <Http2Server>
Used to set the timeout value for http2 server requests,
and sets a callback function that is called when there is no activity
on the Http2Server after msecs milliseconds.
The given callback is registered as a listener on the 'timeout' event.
In case of no callback function were assigned, a new ERR_INVALID_CALLBACK
error will be thrown.
To change the default timeout use the --http-server-default-timeout
flag.