From 7c781bcd1a2e68dbd13e1d94cdc16d871aa8449c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 2 Aug 2014 00:26:43 +0900 Subject: [PATCH] nghttpx: Issue RST_STREAM instead of returning NGHTTP2_ERR_TEMPORAL_CALLBACKFAILURE NGHTTP2_ERR_TEMPORAL_CALLBACKFAILURE is not supported in on_frame_recv_callback. --- src/shrpx_http2_session.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shrpx_http2_session.cc b/src/shrpx_http2_session.cc index a7117248..9b983d7f 100644 --- a/src/shrpx_http2_session.cc +++ b/src/shrpx_http2_session.cc @@ -1080,7 +1080,9 @@ int on_frame_recv_callback return rv; } } else if((frame->hd.flags & NGHTTP2_FLAG_END_STREAM) == 0) { - return NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE; + http2session->submit_rst_stream(frame->hd.stream_id, + NGHTTP2_PROTOCOL_ERROR); + return 0; } }