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

Unified Diff: net/spdy/spdy_session.h

Issue 14311002: [SPDY] Avoid leaking bytes from the session flow control receive window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/spdy_proxy_client_socket.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session.h
diff --git a/net/spdy/spdy_session.h b/net/spdy/spdy_session.h
index 55ac9f9dc6438f95b1e3b67918b096c677846fde..0746398f4f26728d241628eeba0a2fe1a8f62784 100644
--- a/net/spdy/spdy_session.h
+++ b/net/spdy/spdy_session.h
@@ -316,13 +316,6 @@ class NET_EXPORT SpdySession : public base::RefCounted<SpdySession>,
void SendStreamWindowUpdate(SpdyStreamId stream_id,
uint32 delta_window_size);
- // Called by a stream to increase this session's receive window size
- // by |delta_window_size|, which must be at least 1 and must not
- // cause this session's receive window size to overflow, possibly
- // also sending a WINDOW_UPDATE frame. Does nothing if session flow
- // control is turned off.
- void IncreaseRecvWindowSize(int32 delta_window_size);
-
// If session is closed, no new streams/transactions should be created.
bool IsClosed() const { return state_ == STATE_CLOSED; }
@@ -470,6 +463,8 @@ class NET_EXPORT SpdySession : public base::RefCounted<SpdySession>,
FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, AdjustSendWindowSize31);
FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test,
SessionFlowControlInactiveStream31);
+ FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test,
+ SessionFlowControlNoReceiveLeaks31);
FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, SessionFlowControlEndToEnd31);
typedef std::deque<SpdyStreamRequest*> PendingStreamRequestQueue;
@@ -684,6 +679,15 @@ class NET_EXPORT SpdySession : public base::RefCounted<SpdySession>,
// cause this session's send window size to go negative.
void DecreaseSendWindowSize(int32 delta_window_size);
+ // Called by SpdyBuffers (via ConsumeCallbacks) to increase this
+ // session's receive window size by |delta_window_size|, which must
+ // be at least 1 and must not cause this session's receive window
+ // size to overflow, possibly also sending a WINDOW_UPDATE
+ // frame. Also called during initialization to set the initial
+ // receive window size. Does nothing if session flow control is
+ // turned off.
+ void IncreaseRecvWindowSize(size_t delta_window_size);
+
// If session flow control is turned on, called by OnStreamFrameData
// (which is in turn called by the framer) to decrease this
// session's receive window size by |delta_window_size|, which must
« no previous file with comments | « net/spdy/spdy_proxy_client_socket.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698