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

Unified Diff: net/http/http_network_transaction.cc

Issue 1898133002: Add reprioritization to socket pools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test for not propagating priority in HttpStreamFactoryImpl::Job if the stream's been returned alrea… Created 3 years, 12 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 | net/http/http_proxy_client_socket_pool.h » ('j') | net/http/http_stream_factory_impl_job.cc » ('J')
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 b7ceb430bd9ea8bc3f1b202cdf7aaf483f3b4976..1e4dd45e1ad84f151d2fb824f2467d9566877173 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -421,7 +421,13 @@ void HttpNetworkTransaction::PopulateNetErrorDetails(
void HttpNetworkTransaction::SetPriority(RequestPriority priority) {
priority_ = priority;
- // TODO: Note that if throttling is ever implemented below this
+ // TODO(rdsmith): Handle race between SetPriority and
+ // HttpStreamFactoryImpl::Job notifying this class of stream
+ // creation (where this class will have set the priority on the
+ // stream_request_ but that will be a no-op because the stream has
+ // already been created).
mmenke 2017/01/03 22:51:22 Think this should be clearer. I assume the issue
Randy Smith (Not in Mondays) 2017/01/05 03:47:18 Yep. I've reworded the comment; let me know what
+
+ // TODO(rdsmith): Note that if throttling is ever implemented below this
mmenke 2017/01/03 22:51:22 Know this is an old comment, but I can't remember
Randy Smith (Not in Mondays) 2017/01/05 03:47:18 I've added " ... if *priority based* throttling ..
// level, either of the two below calls may result in request
// completion, callbacks, and the potential deletion of this object
// (like the call below to throttle_->SetPriority()). In that case,
« no previous file with comments | « no previous file | net/http/http_proxy_client_socket_pool.h » ('j') | net/http/http_stream_factory_impl_job.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698