connection.local().maxActiveStreams((int) min(maxConcurrentStreams, MAX_VALUE));
connection.remote().maxActiveStreams((int) min(maxConcurrentStreams, MAX_VALUE));
connection.local().maxActiveStreams((int) min(maxConcurrentStreams, MAX_VALUE));
connection.remote().maxActiveStreams((int) min(maxConcurrentStreams, MAX_VALUE));
connection.remote().maxActiveStreams((int) min(maxConcurrentStreams, MAX_VALUE));
connection.local().maxActiveStreams((int) min(maxConcurrentStreams, MAX_VALUE));
connection.remote().maxActiveStreams((int) min(maxConcurrentStreams, MAX_VALUE));
connection.remote().maxActiveStreams((int) min(maxConcurrentStreams, MAX_VALUE));
@Override public Http2Settings localSettings() { Http2Settings settings = new Http2Settings(); Http2FrameReader.Configuration config = frameReader.configuration(); Http2HeadersDecoder.Configuration headersConfig = config.headersConfiguration(); Http2FrameSizePolicy frameSizePolicy = config.frameSizePolicy(); settings.initialWindowSize(flowController().initialWindowSize()); settings.maxConcurrentStreams(connection.remote().maxActiveStreams()); settings.headerTableSize(headersConfig.maxHeaderTableSize()); settings.maxFrameSize(frameSizePolicy.maxFrameSize()); settings.maxHeaderListSize(headersConfig.maxHeaderListSize()); if (!connection.isServer()) { // Only set the pushEnabled flag if this is a client endpoint. settings.pushEnabled(connection.local().allowPushTo()); } return settings; }
@Override public Http2Settings localSettings() { Http2Settings settings = new Http2Settings(); Http2FrameReader.Configuration config = frameReader.configuration(); Http2HeadersDecoder.Configuration headersConfig = config.headersConfiguration(); Http2FrameSizePolicy frameSizePolicy = config.frameSizePolicy(); settings.initialWindowSize(flowController().initialWindowSize()); settings.maxConcurrentStreams(connection.remote().maxActiveStreams()); settings.headerTableSize(headersConfig.maxHeaderTableSize()); settings.maxFrameSize(frameSizePolicy.maxFrameSize()); settings.maxHeaderListSize(headersConfig.maxHeaderListSize()); if (!connection.isServer()) { // Only set the pushEnabled flag if this is a client endpoint. settings.pushEnabled(connection.local().allowPushTo()); } return settings; }
@Override public Http2Settings localSettings() { Http2Settings settings = new Http2Settings(); Http2FrameReader.Configuration config = frameReader.configuration(); Http2HeadersDecoder.Configuration headersConfig = config.headersConfiguration(); Http2FrameSizePolicy frameSizePolicy = config.frameSizePolicy(); settings.initialWindowSize(flowController().initialWindowSize()); settings.maxConcurrentStreams(connection.remote().maxActiveStreams()); settings.headerTableSize(headersConfig.maxHeaderTableSize()); settings.maxFrameSize(frameSizePolicy.maxFrameSize()); settings.maxHeaderListSize(headersConfig.maxHeaderListSize()); if (!connection.isServer()) { // Only set the pushEnabled flag if this is a client endpoint. settings.pushEnabled(connection.local().allowPushTo()); } return settings; }
@Override public Http2Settings localSettings() { Http2Settings settings = new Http2Settings(); Http2FrameReader.Configuration config = frameReader.configuration(); Http2HeadersDecoder.Configuration headersConfig = config.headersConfiguration(); Http2FrameSizePolicy frameSizePolicy = config.frameSizePolicy(); settings.initialWindowSize(flowController().initialWindowSize()); settings.maxConcurrentStreams(connection.remote().maxActiveStreams()); settings.headerTableSize(headersConfig.maxHeaderTableSize()); settings.maxFrameSize(frameSizePolicy.maxFrameSize()); settings.maxHeaderListSize(headersConfig.maxHeaderListSize()); if (!connection.isServer()) { // Only set the pushEnabled flag if this is a client endpoint. settings.pushEnabled(connection.local().allowPushTo()); } return settings; }
@Override public void remoteSettings(Http2Settings settings) throws Http2Exception { // Need to let the delegate decoder handle the settings first, so that it sees the // new setting before we attempt to create any new streams. super.remoteSettings(settings); // Get the updated value for SETTINGS_MAX_CONCURRENT_STREAMS. maxConcurrentStreams = connection().local().maxActiveStreams(); // Try to create new streams up to the new threshold. tryCreatePendingStreams(); }
@Override public void remoteSettings(Http2Settings settings) throws Http2Exception { // Need to let the delegate decoder handle the settings first, so that it sees the // new setting before we attempt to create any new streams. super.remoteSettings(settings); // Get the updated value for SETTINGS_MAX_CONCURRENT_STREAMS. maxConcurrentStreams = connection().local().maxActiveStreams(); // Try to create new streams up to the new threshold. tryCreatePendingStreams(); }
@Override public Http2Settings localSettings() { Http2Settings settings = new Http2Settings(); Http2FrameReader.Configuration config = frameReader.configuration(); Http2HeadersDecoder.Configuration headersConfig = config.headersConfiguration(); Http2FrameSizePolicy frameSizePolicy = config.frameSizePolicy(); settings.initialWindowSize(flowController().initialWindowSize()); settings.maxConcurrentStreams(connection.remote().maxActiveStreams()); settings.headerTableSize(headersConfig.maxHeaderTableSize()); settings.maxFrameSize(frameSizePolicy.maxFrameSize()); settings.maxHeaderListSize(headersConfig.maxHeaderListSize()); if (!connection.isServer()) { // Only set the pushEnabled flag if this is a client endpoint. settings.pushEnabled(connection.local().allowPushTo()); } return settings; }
@Override public void remoteSettings(Http2Settings settings) throws Http2Exception { // Need to let the delegate decoder handle the settings first, so that it sees the // new setting before we attempt to create any new streams. super.remoteSettings(settings); // Get the updated value for SETTINGS_MAX_CONCURRENT_STREAMS. maxConcurrentStreams = connection().local().maxActiveStreams(); // Try to create new streams up to the new threshold. tryCreatePendingStreams(); }