trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sor...@apache.org
Subject [1/6] trafficserver git commit: TS-3493 Grow window sizes as part of HTTP session setup
Date Mon, 06 Apr 2015 16:45:11 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/5.3.x ee2c95246 -> 7f0c9b7d7


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

(cherry picked from commit 1d965ff469ede776012404cacd4c6e96fe76bf12)


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

Branch: refs/heads/5.3.x
Commit: 2bac5bac11a9fb31b84df1fd4171b8ede9f95d74
Parents: ee2c952
Author: Masakazu Kitajo <m4sk17@gmail.com>
Authored: Sun Apr 5 09:55:24 2015 -0600
Committer: Phil Sorber <sorber@apache.org>
Committed: Mon Apr 6 10:26:12 2015 -0600

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


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/2bac5bac/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