From 618a1e0782121f558e775c04f29fa2fde24ca1e0 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 19 Aug 2013 00:41:03 +0900 Subject: [PATCH] Update doc --- lib/nghttp2_session.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/nghttp2_session.c b/lib/nghttp2_session.c index 5bce1a55..63afa480 100644 --- a/lib/nghttp2_session.c +++ b/lib/nghttp2_session.c @@ -1808,7 +1808,10 @@ int nghttp2_session_on_headers_received(nghttp2_session *session, } } } else if(stream->state == NGHTTP2_STREAM_RESERVED) { - /* reserved (local) */ + /* reserved (local). The valid push response HEADERS is processed + by nghttp2_session_on_push_response_headers_received(). This + generic HEADERS is called invalid cases for HEADERS against + reserved state. */ return nghttp2_session_handle_invalid_connection(session, frame, NGHTTP2_PROTOCOL_ERROR); } else {