You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2019/06/17 23:43:04 UTC
[trafficserver] branch master updated: HTTP/2: ignore unknown
settings
This is an automated email from the ASF dual-hosted git repository.
masaori pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 74d6588 HTTP/2: ignore unknown settings
74d6588 is described below
commit 74d65887625fe9a291a27520598dc93326d800b0
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Fri Jun 14 14:44:20 2019 +0900
HTTP/2: ignore unknown settings
---
proxy/http2/HTTP2.cc | 3 ++-
proxy/http2/Http2ConnectionState.h | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/proxy/http2/HTTP2.cc b/proxy/http2/HTTP2.cc
index b8dcfcc..aae8786 100644
--- a/proxy/http2/HTTP2.cc
+++ b/proxy/http2/HTTP2.cc
@@ -155,7 +155,8 @@ http2_settings_parameter_is_valid(const Http2SettingsParameter ¶m)
};
if (param.id == 0 || param.id >= HTTP2_SETTINGS_MAX) {
- return false;
+ // Do nothing - 6.5.2 Unsupported parameters MUST be ignored
+ return true;
}
if (param.value > settings_max[param.id]) {
diff --git a/proxy/http2/Http2ConnectionState.h b/proxy/http2/Http2ConnectionState.h
index a4acb76..c8652af 100644
--- a/proxy/http2/Http2ConnectionState.h
+++ b/proxy/http2/Http2ConnectionState.h
@@ -85,7 +85,7 @@ public:
if (0 < id && id < HTTP2_SETTINGS_MAX) {
return this->settings[indexof(id)] = value;
} else {
- // Do nothing - 6.5.3 Unsupported parameters MUST be ignored.
+ // Do nothing - 6.5.2 Unsupported parameters MUST be ignored
}
return 0;