Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1359)

Unified Diff: net/spdy/spdy_http_stream.cc

Issue 10910268: net: Make UploadDataStream::Read() asynchronous (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments, fix a bug where IsEOF() does not get true when the buf size equals to data size Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/spdy/spdy_http_stream.cc
diff --git a/net/spdy/spdy_http_stream.cc b/net/spdy/spdy_http_stream.cc
index f642dc4b326e901a26bbbe2e54758f07277dbcbb..0448f787b6cd96cf306b7ea9814fc665e30580a6 100644
--- a/net/spdy/spdy_http_stream.cc
+++ b/net/spdy/spdy_http_stream.cc
@@ -283,7 +283,7 @@ int SpdyHttpStream::SendData() {
CHECK_EQ(0, request_body_buf_->BytesRemaining());
// Read the data from the request body stream.
- const int bytes_read = request_body_stream_->Read(
+ const int bytes_read = request_body_stream_->ReadSync(
raw_request_body_buf_, raw_request_body_buf_->size());
DCHECK(!waiting_for_chunk_ || bytes_read != ERR_IO_PENDING);

Powered by Google App Engine
This is Rietveld 408576698