diff options
author | mlloyd@chromium.org <mlloyd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-24 19:17:58 +0000 |
---|---|---|
committer | mlloyd@chromium.org <mlloyd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-24 19:17:58 +0000 |
commit | d3002235bebf6df780b2425b1fb7606e0c033974 (patch) | |
tree | 975213da7aa0cec04384b8ca8749ade535f749f2 /net/spdy/spdy_stream.h | |
parent | 955f0ffae85be445f114f5ab6f729ad65e25dc28 (diff) | |
download | chromium_src-d3002235bebf6df780b2425b1fb7606e0c033974.zip chromium_src-d3002235bebf6df780b2425b1fb7606e0c033974.tar.gz chromium_src-d3002235bebf6df780b2425b1fb7606e0c033974.tar.bz2 |
Ignore duplicate SYN_REPLYs on the same stream. Added a unit test.
BUG=45639
TEST=Added unit test, which caused an ASSERT fail before but now passes.
Review URL: http://codereview.chromium.org/2871015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50751 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_stream.h')
-rwxr-xr-x[-rw-r--r--] | net/spdy/spdy_stream.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/spdy/spdy_stream.h b/net/spdy/spdy_stream.h index 919bca8..6183be2 100644..100755 --- a/net/spdy/spdy_stream.h +++ b/net/spdy/spdy_stream.h @@ -90,6 +90,9 @@ class SpdyStream : public base::RefCounted<SpdyStream> { spdy::SpdyStreamId stream_id() const { return stream_id_; } void set_stream_id(spdy::SpdyStreamId stream_id) { stream_id_ = stream_id; } + bool syn_reply_received() const { return syn_reply_received_; } + void set_syn_reply_received() { syn_reply_received_ = true; } + // For pushed streams, we track a path to identify them. const std::string& path() const { return path_; } void set_path(const std::string& path) { path_ = path; } @@ -196,6 +199,7 @@ class SpdyStream : public base::RefCounted<SpdyStream> { int priority_; const bool pushed_; ScopedBandwidthMetrics metrics_; + bool syn_reply_received_; scoped_refptr<SpdySession> session_; |