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

Unified Diff: net/http/http_network_transaction.cc

Issue 25217002: net: Reset UploadDataStream on HttpNetworkTransaction destruction (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/http/http_network_transaction.cc
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index a63a2aa43b974acbc11ec1ebe599e4f6ca294399..44ded86f530b465aa490f035857eff17b6733552 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -163,6 +163,9 @@ HttpNetworkTransaction::~HttpNetworkTransaction() {
}
}
}
+
+ if (request_ && request_->upload_data_stream)
+ request_->upload_data_stream->Reset(); // Invalidate pending operations.
mmenke 2013/10/02 01:02:54 Comment isn't accurate - pending operations will s
hashimoto 2013/10/02 03:45:35 Done.
}
int HttpNetworkTransaction::Start(const HttpRequestInfo* request_info,

Powered by Google App Engine
This is Rietveld 408576698