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

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: fix nits 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
« no previous file with comments | « net/base/upload_data_stream.h ('k') | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9e24da8863e1c35eb6c5fa25effdf1ded10274b9 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 callbacks.
}
int HttpNetworkTransaction::Start(const HttpRequestInfo* request_info,
« no previous file with comments | « net/base/upload_data_stream.h ('k') | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698