diff options
author | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-31 19:20:16 +0000 |
---|---|---|
committer | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-31 19:20:16 +0000 |
commit | 58cebf8f4760a748c486475f046ee201b32b0642 (patch) | |
tree | 0d0bf870d4ebba7661efe4d5ecb4b081cd252749 /net/socket | |
parent | d983b84870429ce4e860277262cf3f151ac4144d (diff) | |
download | chromium_src-58cebf8f4760a748c486475f046ee201b32b0642.zip chromium_src-58cebf8f4760a748c486475f046ee201b32b0642.tar.gz chromium_src-58cebf8f4760a748c486475f046ee201b32b0642.tar.bz2 |
When we get a silent TCP RST, SPDY connections need to retry.
Fixing this involved a couple of minor changes.
* We were not tracking whether a SPDY session should be retried.
The HTTP logic uses "is_socket_idle()" to determine if the socket
was once good and is worth retrying. Because SPDY is not serialized
added methods through the SpdySession and SpdyHttpStream for this.
(See ShouldResendFailedRequest)
* The spdy_http_stream was not notifying the caller when
OnSendHeadersComplete occurred when there is no upload body.
This isn't strictly necessary, but keeps the HttpNetworkTransaction
state more consistent.
BUG=50510
TEST=SpdyNetworkTransactionTest
Review URL: http://codereview.chromium.org/3064021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54464 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket')
-rw-r--r-- | net/socket/socket_test_util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket/socket_test_util.cc b/net/socket/socket_test_util.cc index 8319563..ce7f3fc06 100644 --- a/net/socket/socket_test_util.cc +++ b/net/socket/socket_test_util.cc @@ -522,7 +522,7 @@ DelayedSocketData::DelayedSocketData( } MockRead DelayedSocketData::GetNextRead() { - if (write_delay_) + if (write_delay_ > 0) return MockRead(true, ERR_IO_PENDING); return StaticSocketDataProvider::GetNextRead(); } |