Issue #752 - Implement support for HTTP2 SETTINGS_MAX_HEADER_LIST_SIZE.

Reverted to warning if a small SETTINGS_MAX_HEADER_LIST_SIZE. is received.
Setting it on the httpConfig effects all connections, not just the one the
setting was received from.
This commit is contained in:
Greg Wilkins 2016-07-22 09:52:52 +10:00
parent 088dc036b4
commit 849d51c07d
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ public class HTTP2ServerConnectionFactory extends AbstractHTTP2ServerConnectionF
HttpConfiguration httpConfig = getHttpConfiguration(); HttpConfiguration httpConfig = getHttpConfiguration();
Integer mhls = frame.getSettings().get(SettingsFrame.MAX_HEADER_LIST_SIZE); Integer mhls = frame.getSettings().get(SettingsFrame.MAX_HEADER_LIST_SIZE);
if (mhls != null && mhls < httpConfig.getResponseHeaderSize()) if (mhls != null && mhls < httpConfig.getResponseHeaderSize())
httpConfig.setResponseHeaderSize(mhls); LOG.warn("MAX_HEADER_LIST_SIZE<{} for {}",getHttpConfiguration().getResponseHeaderSize(),session);
} }
@Override @Override