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

Unified Diff: net/http/disk_cache_based_quic_server_info.cc

Issue 2649043005: Make DiskCacheBasedQuicServerInfo release buffers when no longer needed (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/disk_cache_based_quic_server_info.cc
diff --git a/net/http/disk_cache_based_quic_server_info.cc b/net/http/disk_cache_based_quic_server_info.cc
index 6ef54eb06ce68b7ca71fff7df867046c97040c87..f305c1819bcccbca27ec6336c7677ee4a0a7de57 100644
--- a/net/http/disk_cache_based_quic_server_info.cc
+++ b/net/http/disk_cache_based_quic_server_info.cc
@@ -289,6 +289,7 @@ int DiskCacheBasedQuicServerInfo::DoReadComplete(int rv) {
else if (rv < 0)
RecordQuicServerInfoFailure(READ_FAILURE);
+ read_buffer_ = nullptr;
state_ = WAIT_FOR_DATA_READY_DONE;
return OK;
}
@@ -296,6 +297,7 @@ int DiskCacheBasedQuicServerInfo::DoReadComplete(int rv) {
int DiskCacheBasedQuicServerInfo::DoWriteComplete(int rv) {
if (rv < 0)
RecordQuicServerInfoFailure(WRITE_FAILURE);
+ write_buffer_ = nullptr;
state_ = SET_DONE;
return OK;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698