trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject [1/2] trafficserver git commit: TS-3493 Grow window sizes as part of HTTP session setup
Date Sun, 05 Apr 2015 15:56:29 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 3f311ce3a -> ede0f007d


TS-3493 Grow window sizes as part of HTTP session setup


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/1d965ff4
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/1d965ff4
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/1d965ff4

Branch: refs/heads/master
Commit: 1d965ff469ede776012404cacd4c6e96fe76bf12
Parents: 3f311ce
Author: Masakazu Kitajo <m4sk17@gmail.com>
Authored: Sun Apr 5 09:55:24 2015 -0600
Committer: Leif Hedstrom <zwoop@apache.org>
Committed: Sun Apr 5 09:55:24 2015 -0600

----------------------------------------------------------------------
 proxy/http2/Http2ConnectionState.cc | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/1d965ff4/proxy/http2/Http2ConnectionState.cc
----------------------------------------------------------------------
diff --git a/proxy/http2/Http2ConnectionState.cc b/proxy/http2/Http2ConnectionState.cc
index 9f90858..44efe2b 100644
--- a/proxy/http2/Http2ConnectionState.cc
+++ b/proxy/http2/Http2ConnectionState.cc
@@ -616,6 +616,12 @@ Http2ConnectionState::main_event_handler(int event, void *edata)
     settings.finalize(HTTP2_SETTINGS_PARAMETER_LEN * (HTTP2_SETTINGS_MAX - 1));
     this->ua_session->handleEvent(HTTP2_SESSION_EVENT_XMIT, &settings);
 
+    // TODO: 65535 is the initial window size comes from the HTTP2 spec.
+    //       It should be defined in somewhere.
+    if (server_settings.get(HTTP2_SETTINGS_INITIAL_WINDOW_SIZE) > 65535) {
+      send_window_update_frame(0, server_settings.get(HTTP2_SETTINGS_INITIAL_WINDOW_SIZE)
- 65535);
+    }
+
     return 0;
   }
 


Mime
View raw message