diff options
author | agayev@chromium.org <agayev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-05 21:04:19 +0000 |
---|---|---|
committer | agayev@chromium.org <agayev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-05 21:04:19 +0000 |
commit | 31024059f0a8b7e22c298fbe6657e33342357118 (patch) | |
tree | 0ed2f90e26875a7b216b2b777be17898c59c2a35 /net/spdy/spdy_stream.h | |
parent | e20859e87ff4b3a1c31ebbc4ea4215450d3f80a8 (diff) | |
download | chromium_src-31024059f0a8b7e22c298fbe6657e33342357118.zip chromium_src-31024059f0a8b7e22c298fbe6657e33342357118.tar.gz chromium_src-31024059f0a8b7e22c298fbe6657e33342357118.tar.bz2 |
SPDY: flow-control fix: resume I/O once a WINDOW_UPDATE frame is received for a stalled stream.
BUG=none
TEST=net_unittests
Review URL: http://codereview.chromium.org/3018019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55125 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_stream.h')
-rw-r--r-- | net/spdy/spdy_stream.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net/spdy/spdy_stream.h b/net/spdy/spdy_stream.h index cad23f2..1745867 100644 --- a/net/spdy/spdy_stream.h +++ b/net/spdy/spdy_stream.h @@ -48,8 +48,10 @@ class SpdyStream : public base::RefCounted<SpdyStream> { // Called when data has been sent. |status| indicates network error // or number of bytes has been sent. + virtual void OnSendBodyComplete(int status) = 0; + // Returns true if no more data to be sent. - virtual bool OnSendBodyComplete(int status) = 0; + virtual bool IsFinishedSendingBody() = 0; // Called when SYN_REPLY received. |status| indicates network error. // Returns network error code. @@ -223,6 +225,10 @@ class SpdyStream : public base::RefCounted<SpdyStream> { spdy::SpdyStreamId stream_id_; std::string path_; int priority_; + + // Tracks when a window update has already triggered a write, but + // the write has not yet completed. + bool window_update_write_pending_; int send_window_size_; const bool pushed_; |