Since application most likely allocates the stream object in nghttp2_on_begin_headers_callback, it is desirable to handle its failure as stream error. But previously it only signals success or fatal error. Submitting RST_STREAM does not prevent nghttp2_on_header_callback from being invoked. This commit improves this situation by allowing NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE from nghttp2_on_begin_headers_callback. If that value is returned, library submits RST_STREAM with error code INTERNAL_ERROR, and nghttp2_on_header_callback and nghttp2_on_frame_recv_callback for that frame are not invoked. Note that for PUSH_PROMISE frame, the stream to be reset is promised stream. |
||
---|---|---|
.. | ||
nghttp2 | ||
Makefile.am |