Index: net/spdy/spdy_proxy_client_socket.cc |
=================================================================== |
--- net/spdy/spdy_proxy_client_socket.cc (revision 121841) |
+++ net/spdy/spdy_proxy_client_socket.cc (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -172,6 +172,7 @@ |
if (!user_buffer_) |
return ERR_IO_PENDING; |
+ int bytes_read = 0; |
while (!read_buffer_.empty() && user_buffer_->BytesRemaining() > 0) { |
scoped_refptr<DrainableIOBuffer> data = read_buffer_.front(); |
const int bytes_to_copy = std::min(user_buffer_->BytesRemaining(), |
@@ -186,6 +187,10 @@ |
} |
} |
+ if (bytes_read > 0) { |
+ DCHECK(spdy_stream_); |
+ spdy_stream_->IncreaseRecvWindowSize(bytes_read); |
+ } |
return user_buffer_->BytesConsumed(); |
} |