From f05e1a991a642faeb531f80f78aaf1d11a2fb392 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 7 Aug 2014 23:10:21 +0900 Subject: HTTP/2: Reset promised stream, not its associated stream. --- lib/http2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/http2.c b/lib/http2.c index aa3b5f1db..f57159084 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -263,7 +263,8 @@ static int on_frame_recv(nghttp2_session *session, const nghttp2_frame *frame, break; case NGHTTP2_PUSH_PROMISE: rv = nghttp2_submit_rst_stream(session, NGHTTP2_FLAG_NONE, - frame->hd.stream_id, NGHTTP2_CANCEL); + frame->push_promise.promised_stream_id, + NGHTTP2_CANCEL); if(nghttp2_is_fatal(rv)) { return rv; } -- cgit v1.2.3