Remote Window Size Not Updated When Settings Received

Motivation:
There are a few different variables which represent the remote window size.  Not all of them are updated to correctly utilize the available window size.

Modifications:
Update the missing variable when a settings frame is received.

Result:
Flow control window should be correctly utilized due to remote settings frame being received.
This commit is contained in:
Scott Mitchell 2014-11-26 11:04:16 -05:00
parent dfbc6e6a57
commit 32ebcdb162
1 changed files with 1 additions and 1 deletions

View File

@ -3733,7 +3733,7 @@ int nghttp2_session_on_settings_received(nghttp2_session *session,
(session, frame, NGHTTP2_FLOW_CONTROL_ERROR, NULL);
}
session->remote_settings.initial_window_size = entry->value;
session->remote_settings.initial_window_size = session->remote_window_size = entry->value;
break;
case NGHTTP2_SETTINGS_MAX_FRAME_SIZE: