RST_STREAM 和 GOAWAY 的错误代码
🌐 Error codes for RST_STREAM and GOAWAY
| 值 | 名称 | 常量 |
| --- | --- | --- |
| 0x00 | 无错误 | http2.constants.NGHTTP2_NO_ERROR |
| 0x01 | 协议错误 | http2.constants.NGHTTP2_PROTOCOL_ERROR |
| 0x02 | 内部错误 | http2.constants.NGHTTP2_INTERNAL_ERROR |
| 0x03 | 流程控制错误 | http2.constants.NGHTTP2_FLOW_CONTROL_ERROR |
| 0x04 | 设置超时 | http2.constants.NGHTTP2_SETTINGS_TIMEOUT |
| 0x05 | 流已关闭 | http2.constants.NGHTTP2_STREAM_CLOSED |
| 0x06 | 帧大小错误 | http2.constants.NGHTTP2_FRAME_SIZE_ERROR |
| 0x07 | 拒绝的流 | http2.constants.NGHTTP2_REFUSED_STREAM |
| 0x08 | 取消 | http2.constants.NGHTTP2_CANCEL |
| 0x09 | 压缩错误 | http2.constants.NGHTTP2_COMPRESSION_ERROR |
| 0x0a | 连接错误 | http2.constants.NGHTTP2_CONNECT_ERROR |
| 0x0b | 提升你的平静 | http2.constants.NGHTTP2_ENHANCE_YOUR_CALM |
| 0x0c | 安全性不足 | http2.constants.NGHTTP2_INADEQUATE_SECURITY |
| 0x0d | HTTP/1.1 必需 | http2.constants.NGHTTP2_HTTP_1_1_REQUIRED |
当服务器在通过 http2server.setTimeout() 设置的指定毫秒数内没有任何活动时,会触发 'timeout' 事件。
🌐 The 'timeout' event is emitted when there is no activity on the Server for
a given number of milliseconds set using http2server.setTimeout().