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

Issue 1091793002: Report the connect status of the oldest connection in the socket pool. (Closed)

Created:
5 years, 8 months ago by haavardm
Modified:
5 years, 8 months ago
Reviewers:
eroman, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Report the connect status of the oldest connection in the socket pool. This CL implements a combination of the suggestions 1) and 2) and comment #1 in crbug.com/462808. This reduces the number of calls to GetLoadState. However the status might be less accurate as we are far from guaranteed that the oldest connection is the one which has come the furthest. This should be acceptable though, as the state is mainly used report activity or at which stage connections are hung at. BUG=462808 Committed: https://crrev.com/835c1d6d6b8374ed2e71e04825b7b3c58fd0aa32 Cr-Commit-Position: refs/heads/master@{#326244}

Patch Set 1 #

Patch Set 2 : Improve comment #

Total comments: 8

Patch Set 3 : Use a list instead of a set. #

Total comments: 9

Patch Set 4 : Address mmenkes' comments #

Patch Set 5 : Fixed typo #

Patch Set 6 : Final nit #

Total comments: 4

Patch Set 7 : Address more comments #

Patch Set 8 : Fixed typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -40 lines) Patch
M net/socket/client_socket_pool_base.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M net/socket/client_socket_pool_base.cc View 1 2 3 4 5 6 4 chunks +9 lines, -15 lines 0 comments Download
M net/socket/client_socket_pool_base_unittest.cc View 1 2 3 4 5 6 7 1 chunk +38 lines, -23 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
haavardm
mmenke please review, eroman, FYI.
5 years, 8 months ago (2015-04-17 07:46:58 UTC) #2
mmenke
https://codereview.chromium.org/1091793002/diff/20001/net/socket/client_socket_pool_base.h File net/socket/client_socket_pool_base.h (right): https://codereview.chromium.org/1091793002/diff/20001/net/socket/client_socket_pool_base.h#newcode120 net/socket/client_socket_pool_base.h:120: } If two ConnectJob are created at the same ...
5 years, 8 months ago (2015-04-17 15:32:40 UTC) #3
haavardm
https://codereview.chromium.org/1091793002/diff/20001/net/socket/client_socket_pool_base.h File net/socket/client_socket_pool_base.h (right): https://codereview.chromium.org/1091793002/diff/20001/net/socket/client_socket_pool_base.h#newcode120 net/socket/client_socket_pool_base.h:120: } On 2015/04/17 15:32:40, mmenke wrote: > If two ...
5 years, 8 months ago (2015-04-18 07:24:16 UTC) #4
mmenke
https://codereview.chromium.org/1091793002/diff/20001/net/socket/client_socket_pool_base.h File net/socket/client_socket_pool_base.h (right): https://codereview.chromium.org/1091793002/diff/20001/net/socket/client_socket_pool_base.h#newcode120 net/socket/client_socket_pool_base.h:120: } On 2015/04/18 07:24:16, haavardm wrote: > On 2015/04/17 ...
5 years, 8 months ago (2015-04-18 13:49:58 UTC) #5
haavardm
Did the list approach. PTAL https://codereview.chromium.org/1091793002/diff/20001/net/socket/client_socket_pool_base.h File net/socket/client_socket_pool_base.h (right): https://codereview.chromium.org/1091793002/diff/20001/net/socket/client_socket_pool_base.h#newcode120 net/socket/client_socket_pool_base.h:120: } On 2015/04/17 15:32:39, ...
5 years, 8 months ago (2015-04-20 13:03:48 UTC) #6
mmenke
Just minor suggestions https://codereview.chromium.org/1091793002/diff/20001/net/socket/client_socket_pool_base.h File net/socket/client_socket_pool_base.h (right): https://codereview.chromium.org/1091793002/diff/20001/net/socket/client_socket_pool_base.h#newcode120 net/socket/client_socket_pool_base.h:120: } On 2015/04/20 13:03:48, haavardm wrote: ...
5 years, 8 months ago (2015-04-20 14:49:16 UTC) #7
mmenke
https://codereview.chromium.org/1091793002/diff/40001/net/socket/client_socket_pool_base_unittest.cc File net/socket/client_socket_pool_base_unittest.cc (right): https://codereview.chromium.org/1091793002/diff/40001/net/socket/client_socket_pool_base_unittest.cc#newcode1982 net/socket/client_socket_pool_base_unittest.cc:1982: EXPECT_EQ(LOAD_STATE_CONNECTING, handle2.GetLoadState()); On 2015/04/20 14:49:16, mmenke wrote: > This ...
5 years, 8 months ago (2015-04-20 20:32:16 UTC) #8
haavardm
PTAL https://codereview.chromium.org/1091793002/diff/40001/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/1091793002/diff/40001/net/socket/client_socket_pool_base.cc#newcode1197 net/socket/client_socket_pool_base.cc:1197: jobs_.remove(job); On 2015/04/20 14:49:16, mmenke wrote: > Suggest: ...
5 years, 8 months ago (2015-04-21 13:28:36 UTC) #9
mmenke
LGTM, modulo comments. https://codereview.chromium.org/1091793002/diff/100001/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/1091793002/diff/100001/net/socket/client_socket_pool_base.cc#newcode1202 net/socket/client_socket_pool_base.cc:1202: DCHECK_EQ(*std::find(jobs_.begin(), jobs_.end(), job), *jobs_.end()); Oops: This ...
5 years, 8 months ago (2015-04-21 14:27:33 UTC) #10
haavardm
PTAL https://codereview.chromium.org/1091793002/diff/100001/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): https://codereview.chromium.org/1091793002/diff/100001/net/socket/client_socket_pool_base.cc#newcode1202 net/socket/client_socket_pool_base.cc:1202: DCHECK_EQ(*std::find(jobs_.begin(), jobs_.end(), job), *jobs_.end()); On 2015/04/21 14:27:33, mmenke ...
5 years, 8 months ago (2015-04-21 15:14:08 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1091793002/140001
5 years, 8 months ago (2015-04-22 07:02:48 UTC) #14
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 8 months ago (2015-04-22 08:18:13 UTC) #15
commit-bot: I haz the power
5 years, 8 months ago (2015-04-22 08:19:06 UTC) #16
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/835c1d6d6b8374ed2e71e04825b7b3c58fd0aa32
Cr-Commit-Position: refs/heads/master@{#326244}

Powered by Google App Engine
This is Rietveld 408576698