Skip to content

Commit

Permalink
HTTP/2: Reset promised stream, not its associated stream.
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t authored and bagder committed Aug 7, 2014
1 parent 7ceada4 commit f05e1a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/http2.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit f05e1a9

Please sign in to comment.