Commit 21ab2f13 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Connection error if client changes SETTINGS_ENABLE_PUSH to nonzero

parent 1e38ceb1
...@@ -3333,6 +3333,10 @@ int nghttp2_session_on_settings_received(nghttp2_session *session, ...@@ -3333,6 +3333,10 @@ int nghttp2_session_on_settings_received(nghttp2_session *session,
return nghttp2_session_handle_invalid_connection return nghttp2_session_handle_invalid_connection
(session, frame, NGHTTP2_PROTOCOL_ERROR); (session, frame, NGHTTP2_PROTOCOL_ERROR);
} }
if(session->server && entry->value != 0) {
return nghttp2_session_handle_invalid_connection
(session, frame, NGHTTP2_PROTOCOL_ERROR);
}
break; break;
case NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE: case NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE:
/* Update the initial window size of the all active streams */ /* Update the initial window size of the all active streams */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment