阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js server.setTimeout

      Node.js server.setTimeout([msecs][, callback])

      新增于: v8.4.0

      • msecs < number> Default: 120000 (2 minutes)
      • callback < Function>
      • Returns:

      Used to set the timeout value for http2 secure server requests, and sets a callback function that is called when there is no activity on the Http2SecureServer 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.


      更多内容请参考:Node.js HTTP2,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录