Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: net/spdy/spdy_session.h

Issue 2302573002: Revert of Increase maximum size of the HPACK decoder dynamic table to 64 kB. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_SPDY_SPDY_SESSION_H_ 5 #ifndef NET_SPDY_SPDY_SESSION_H_
6 #define NET_SPDY_SPDY_SESSION_H_ 6 #define NET_SPDY_SPDY_SESSION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 const int kMaxSpdyFrameChunkSize = (2 * kMss) - 8; 60 const int kMaxSpdyFrameChunkSize = (2 * kMss) - 8;
61 61
62 // Default value of SETTINGS_INITIAL_WINDOW_SIZE per protocol specification. 62 // Default value of SETTINGS_INITIAL_WINDOW_SIZE per protocol specification.
63 // A session is always created with this initial window size. 63 // A session is always created with this initial window size.
64 const int32_t kDefaultInitialWindowSize = 65535; 64 const int32_t kDefaultInitialWindowSize = 65535;
65 65
66 // Maximum number of concurrent streams we will create, unless the server 66 // Maximum number of concurrent streams we will create, unless the server
67 // sends a SETTINGS frame with a different value. 67 // sends a SETTINGS frame with a different value.
68 const size_t kInitialMaxConcurrentStreams = 100; 68 const size_t kInitialMaxConcurrentStreams = 100;
69 69
70 // Specifies the maximum HPACK dynamic table size the server is allowed to set.
71 const int kMaxHeaderTableSize = 64 * 1024;
72
73 // Specifies the maximum concurrent streams server could send (via push). 70 // Specifies the maximum concurrent streams server could send (via push).
74 const int kMaxConcurrentPushedStreams = 1000; 71 const int kMaxConcurrentPushedStreams = 1000;
75 72
76 // If more than this many bytes have been read or more than that many 73 // If more than this many bytes have been read or more than that many
77 // milliseconds have passed, return ERR_IO_PENDING from ReadLoop. 74 // milliseconds have passed, return ERR_IO_PENDING from ReadLoop.
78 const int kYieldAfterBytesRead = 32 * 1024; 75 const int kYieldAfterBytesRead = 32 * 1024;
79 const int kYieldAfterDurationMilliseconds = 20; 76 const int kYieldAfterDurationMilliseconds = 20;
80 77
81 // First and last valid stream IDs. As we always act as the client, 78 // First and last valid stream IDs. As we always act as the client,
82 // start at 1 for the first stream id. 79 // start at 1 for the first stream id.
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1209 // Used for posting asynchronous IO tasks. We use this even though 1206 // Used for posting asynchronous IO tasks. We use this even though
1210 // SpdySession is refcounted because we don't need to keep the SpdySession 1207 // SpdySession is refcounted because we don't need to keep the SpdySession
1211 // alive if the last reference is within a RunnableMethod. Just revoke the 1208 // alive if the last reference is within a RunnableMethod. Just revoke the
1212 // method. 1209 // method.
1213 base::WeakPtrFactory<SpdySession> weak_factory_; 1210 base::WeakPtrFactory<SpdySession> weak_factory_;
1214 }; 1211 };
1215 1212
1216 } // namespace net 1213 } // namespace net
1217 1214
1218 #endif // NET_SPDY_SPDY_SESSION_H_ 1215 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698