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.1http2.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().