MCPcopy Create free account
hub / github.com/apache/trafficserver / settings_from_configs

Method settings_from_configs

src/proxy/http2/Http2ConnectionState.cc:1222–1235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1220}
1221
1222void
1223Http2ConnectionSettings::settings_from_configs(bool is_outbound)
1224{
1225 if (is_outbound) {
1226 settings[indexof(HTTP2_SETTINGS_MAX_CONCURRENT_STREAMS)] = Http2::max_concurrent_streams_out;
1227 settings[indexof(HTTP2_SETTINGS_INITIAL_WINDOW_SIZE)] = Http2::initial_window_size_out;
1228 } else {
1229 settings[indexof(HTTP2_SETTINGS_MAX_CONCURRENT_STREAMS)] = Http2::max_concurrent_streams_in;
1230 settings[indexof(HTTP2_SETTINGS_INITIAL_WINDOW_SIZE)] = Http2::initial_window_size_in;
1231 }
1232 settings[indexof(HTTP2_SETTINGS_MAX_FRAME_SIZE)] = Http2::max_frame_size;
1233 settings[indexof(HTTP2_SETTINGS_HEADER_TABLE_SIZE)] = Http2::header_table_size;
1234 settings[indexof(HTTP2_SETTINGS_MAX_HEADER_LIST_SIZE)] = Http2::max_header_list_size;
1235}
1236
1237unsigned
1238Http2ConnectionSettings::get(Http2SettingsIdentifier id) const

Callers 2

initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected