Connection error if client changes SETTINGS_ENABLE_PUSH to nonzero
This commit is contained in:
parent
1e38ceb1cd
commit
21ab2f135b
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue