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

Issue 1169163002: Add timeout check for connectivity_checker. (Closed)

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

Description

Add timeout check for connectivity_checker. In case that no response has been received within 3 seconds, cancel the current request and start a new one. BUG=internal b/21298386 Committed: https://crrev.com/cb79e44ab1af04eec4cdeb6520c394bee307ae92 Cr-Commit-Position: refs/heads/master@{#333634}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Add timeout check for connectivity_checker. #

Total comments: 3

Patch Set 3 : Add timeout check for connectivity_checker. #

Total comments: 4

Patch Set 4 : Add timeout check for connectivity_checker. #

Total comments: 4

Patch Set 5 : Add timeout check for connectivity_checker #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -7 lines) Patch
M chromecast/net/connectivity_checker_impl.h View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M chromecast/net/connectivity_checker_impl.cc View 1 2 3 4 5 chunks +25 lines, -7 lines 0 comments Download

Messages

Total messages: 25 (3 generated)
wzhong
5 years, 6 months ago (2015-06-09 17:32:39 UTC) #2
derekjchow1
https://codereview.chromium.org/1169163002/diff/1/chromecast/net/connectivity_checker_impl.cc File chromecast/net/connectivity_checker_impl.cc (right): https://codereview.chromium.org/1169163002/diff/1/chromecast/net/connectivity_checker_impl.cc#newcode177 chromecast/net/connectivity_checker_impl.cc:177: if (request_index_ == request_index && !url_request_.get()) { If the ...
5 years, 6 months ago (2015-06-09 17:53:08 UTC) #3
gunsch
https://codereview.chromium.org/1169163002/diff/1/chromecast/net/connectivity_checker_impl.cc File chromecast/net/connectivity_checker_impl.cc (right): https://codereview.chromium.org/1169163002/diff/1/chromecast/net/connectivity_checker_impl.cc#newcode178 chromecast/net/connectivity_checker_impl.cc:178: LOG(INFO) << "OnUrlRequestTimeOut, request has completed"; Is this going ...
5 years, 6 months ago (2015-06-09 17:58:18 UTC) #4
derekjchow1
https://codereview.chromium.org/1169163002/diff/1/chromecast/net/connectivity_checker_impl.cc File chromecast/net/connectivity_checker_impl.cc (right): https://codereview.chromium.org/1169163002/diff/1/chromecast/net/connectivity_checker_impl.cc#newcode108 chromecast/net/connectivity_checker_impl.cc:108: ++request_index_; Instead of using a request_index, could we store ...
5 years, 6 months ago (2015-06-09 17:59:01 UTC) #5
wzhong
https://codereview.chromium.org/1169163002/diff/1/chromecast/net/connectivity_checker_impl.cc File chromecast/net/connectivity_checker_impl.cc (right): https://codereview.chromium.org/1169163002/diff/1/chromecast/net/connectivity_checker_impl.cc#newcode108 chromecast/net/connectivity_checker_impl.cc:108: ++request_index_; On 2015/06/09 17:59:01, derekjchow1 wrote: > Instead of ...
5 years, 6 months ago (2015-06-09 18:07:49 UTC) #6
gunsch
https://codereview.chromium.org/1169163002/diff/1/chromecast/net/connectivity_checker_impl.cc File chromecast/net/connectivity_checker_impl.cc (right): https://codereview.chromium.org/1169163002/diff/1/chromecast/net/connectivity_checker_impl.cc#newcode178 chromecast/net/connectivity_checker_impl.cc:178: LOG(INFO) << "OnUrlRequestTimeOut, request has completed"; How is it ...
5 years, 6 months ago (2015-06-09 18:13:35 UTC) #7
derekjchow1
https://codereview.chromium.org/1169163002/diff/1/chromecast/net/connectivity_checker_impl.cc File chromecast/net/connectivity_checker_impl.cc (right): https://codereview.chromium.org/1169163002/diff/1/chromecast/net/connectivity_checker_impl.cc#newcode178 chromecast/net/connectivity_checker_impl.cc:178: LOG(INFO) << "OnUrlRequestTimeOut, request has completed"; On 2015/06/09 18:13:35, ...
5 years, 6 months ago (2015-06-09 18:24:15 UTC) #8
wzhong
On 2015/06/09 18:24:15, derekjchow1 wrote: > https://codereview.chromium.org/1169163002/diff/1/chromecast/net/connectivity_checker_impl.cc > File chromecast/net/connectivity_checker_impl.cc (right): > > https://codereview.chromium.org/1169163002/diff/1/chromecast/net/connectivity_checker_impl.cc#newcode178 > ...
5 years, 6 months ago (2015-06-09 20:33:36 UTC) #9
byungchul
https://codereview.chromium.org/1169163002/diff/20001/chromecast/net/connectivity_checker_impl.cc File chromecast/net/connectivity_checker_impl.cc (right): https://codereview.chromium.org/1169163002/diff/20001/chromecast/net/connectivity_checker_impl.cc#newcode143 chromecast/net/connectivity_checker_impl.cc:143: url_request_.reset(NULL); // URLRequest::Cancel() is called in destructor. increase request_index_? ...
5 years, 6 months ago (2015-06-09 20:48:26 UTC) #10
wzhong
https://codereview.chromium.org/1169163002/diff/20001/chromecast/net/connectivity_checker_impl.cc File chromecast/net/connectivity_checker_impl.cc (right): https://codereview.chromium.org/1169163002/diff/20001/chromecast/net/connectivity_checker_impl.cc#newcode143 chromecast/net/connectivity_checker_impl.cc:143: url_request_.reset(NULL); // URLRequest::Cancel() is called in destructor. On 2015/06/09 ...
5 years, 6 months ago (2015-06-09 20:51:45 UTC) #11
wzhong
Patchset #3 uses CancelableCallback. https://codereview.chromium.org/1169163002/diff/1/chromecast/net/connectivity_checker_impl.cc File chromecast/net/connectivity_checker_impl.cc (right): https://codereview.chromium.org/1169163002/diff/1/chromecast/net/connectivity_checker_impl.cc#newcode177 chromecast/net/connectivity_checker_impl.cc:177: if (request_index_ == request_index && ...
5 years, 6 months ago (2015-06-09 22:15:08 UTC) #12
derekjchow1
https://codereview.chromium.org/1169163002/diff/40001/chromecast/net/connectivity_checker_impl.cc File chromecast/net/connectivity_checker_impl.cc (right): https://codereview.chromium.org/1169163002/diff/40001/chromecast/net/connectivity_checker_impl.cc#newcode191 chromecast/net/connectivity_checker_impl.cc:191: url_request_.reset(NULL); // URLRequest::Cancel() is called in destructor. timeout_.Cancel(); here ...
5 years, 6 months ago (2015-06-09 22:19:07 UTC) #13
gunsch
https://codereview.chromium.org/1169163002/diff/40001/chromecast/net/connectivity_checker_impl.cc File chromecast/net/connectivity_checker_impl.cc (right): https://codereview.chromium.org/1169163002/diff/40001/chromecast/net/connectivity_checker_impl.cc#newcode171 chromecast/net/connectivity_checker_impl.cc:171: ++check_errors_; Should this case also cancel the timeout?
5 years, 6 months ago (2015-06-09 22:19:11 UTC) #14
wzhong
https://codereview.chromium.org/1169163002/diff/40001/chromecast/net/connectivity_checker_impl.cc File chromecast/net/connectivity_checker_impl.cc (right): https://codereview.chromium.org/1169163002/diff/40001/chromecast/net/connectivity_checker_impl.cc#newcode171 chromecast/net/connectivity_checker_impl.cc:171: ++check_errors_; On 2015/06/09 22:19:11, gunsch wrote: > Should this ...
5 years, 6 months ago (2015-06-09 22:34:57 UTC) #15
gunsch
lgtm % Derek
5 years, 6 months ago (2015-06-09 22:35:24 UTC) #16
derekjchow1
lgtm, make sure gunsch@ and byungchul@ sign off as well.
5 years, 6 months ago (2015-06-09 22:37:28 UTC) #17
byungchul
https://codereview.chromium.org/1169163002/diff/60001/chromecast/net/connectivity_checker_impl.cc File chromecast/net/connectivity_checker_impl.cc (right): https://codereview.chromium.org/1169163002/diff/60001/chromecast/net/connectivity_checker_impl.cc#newcode71 chromecast/net/connectivity_checker_impl.cc:71: timeout_.Cancel(); not necessary. Will be done at the end ...
5 years, 6 months ago (2015-06-09 22:45:23 UTC) #18
wzhong
https://codereview.chromium.org/1169163002/diff/60001/chromecast/net/connectivity_checker_impl.cc File chromecast/net/connectivity_checker_impl.cc (right): https://codereview.chromium.org/1169163002/diff/60001/chromecast/net/connectivity_checker_impl.cc#newcode71 chromecast/net/connectivity_checker_impl.cc:71: timeout_.Cancel(); On 2015/06/09 22:45:23, byungchul wrote: > not necessary. ...
5 years, 6 months ago (2015-06-09 22:52:37 UTC) #19
byungchul
lgtm
5 years, 6 months ago (2015-06-09 23:15:56 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1169163002/80001
5 years, 6 months ago (2015-06-10 00:13:18 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 6 months ago (2015-06-10 01:23:59 UTC) #24
commit-bot: I haz the power
5 years, 6 months ago (2015-06-10 01:24:40 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/cb79e44ab1af04eec4cdeb6520c394bee307ae92
Cr-Commit-Position: refs/heads/master@{#333634}

Powered by Google App Engine
This is Rietveld 408576698