nghttpx: Issue RST_STREAM instead of returning NGHTTP2_ERR_TEMPORAL_CALLBACKFAILURE

NGHTTP2_ERR_TEMPORAL_CALLBACKFAILURE is not supported in
on_frame_recv_callback.
This commit is contained in:
Tatsuhiro Tsujikawa 2014-08-02 00:26:43 +09:00
parent a234166fc4
commit 7c781bcd1a
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}
}