diff options
author | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-05 22:25:43 +0000 |
---|---|---|
committer | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-05 22:25:43 +0000 |
commit | a5566f970e60a97a9129af7a828d562e70176d87 (patch) | |
tree | 9e9dfe1cdfa8f0cedb8e05b6c9b6484e3273c5c0 /net/spdy/spdy_stream.h | |
parent | f93be30de128f68037f8eef0dd644df809b6d325 (diff) | |
download | chromium_src-a5566f970e60a97a9129af7a828d562e70176d87.zip chromium_src-a5566f970e60a97a9129af7a828d562e70176d87.tar.gz chromium_src-a5566f970e60a97a9129af7a828d562e70176d87.tar.bz2 |
Fix SPDY crash where we receive an early SYN_REPLY.
Added a test case which simulates this by doing a POST and scheduling
the SYN_REPLY to arrive before we've finished sending.
Also improved the error checking in SpdyStream a bit.
BUG=43133
TEST=SpdyNetworkTransactionTest.PostWithEarlySynReply
Review URL: http://codereview.chromium.org/1931003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46505 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_stream.h')
-rw-r--r-- | net/spdy/spdy_stream.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/spdy/spdy_stream.h b/net/spdy/spdy_stream.h index cf7ea4a..235e645 100644 --- a/net/spdy/spdy_stream.h +++ b/net/spdy/spdy_stream.h @@ -99,7 +99,8 @@ class SpdyStream : public base::RefCounted<SpdyStream> { // Called by the SpdySession when a response (e.g. a SYN_REPLY) has been // received for this stream. |path| is the path of the URL for a server // initiated stream, otherwise is empty. - void OnResponseReceived(const HttpResponseInfo& response); + // Returns a status code. + int OnResponseReceived(const HttpResponseInfo& response); // Called by the SpdySession when response data has been received for this // stream. This callback may be called multiple times as data arrives |