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

Issue 422323004: DNS: Don't spin on unexpected EOF reading TCP response (Closed)

Created:
6 years, 4 months ago by Deprecated (see juliatuttle)
Modified:
6 years, 4 months ago
Reviewers:
szym, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

DNS: Don't spin on unexpected EOF reading TCP response DnsTCPAttempt doesn't handle when read returns 0, which is EOF. It keeps reading over and over, which will peg the CPU. Fix it so it stops reading with ERR_CONNECTION_CLOSED, and add unit tests for both ways the connection can close. BUG=393923 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287456

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Add unit tests, remove histograms #

Total comments: 6

Patch Set 4 : Refactor state machine. #

Total comments: 4

Patch Set 5 : Fix one last comment nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -8 lines) Patch
M net/dns/dns_transaction.cc View 1 2 3 5 chunks +37 lines, -8 lines 0 comments Download
M net/dns/dns_transaction_unittest.cc View 1 2 3 4 3 chunks +72 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Deprecated (see juliatuttle)
PTAL, mmenke. FYI, szym.
6 years, 4 months ago (2014-07-31 00:57:56 UTC) #1
mmenke
On 2014/07/31 00:57:56, ttuttle wrote: > PTAL, mmenke. > > FYI, szym. Think we should ...
6 years, 4 months ago (2014-07-31 16:08:14 UTC) #2
szym
On 2014/07/31 16:08:14, mmenke wrote: > On 2014/07/31 00:57:56, ttuttle wrote: > > PTAL, mmenke. ...
6 years, 4 months ago (2014-07-31 16:19:56 UTC) #3
Deprecated (see juliatuttle)
On 2014/07/31 16:19:56, szym wrote: > On 2014/07/31 16:08:14, mmenke wrote: > > On 2014/07/31 ...
6 years, 4 months ago (2014-07-31 22:04:06 UTC) #4
mmenke
https://codereview.chromium.org/422323004/diff/40001/net/dns/dns_transaction.cc File net/dns/dns_transaction.cc (right): https://codereview.chromium.org/422323004/diff/40001/net/dns/dns_transaction.cc#newcode497 net/dns/dns_transaction.cc:497: return ReadIntoBuffer(); I think this would be much clearer ...
6 years, 4 months ago (2014-08-01 15:38:43 UTC) #5
Deprecated (see juliatuttle)
PTAL? https://codereview.chromium.org/422323004/diff/40001/net/dns/dns_transaction.cc File net/dns/dns_transaction.cc (right): https://codereview.chromium.org/422323004/diff/40001/net/dns/dns_transaction.cc#newcode497 net/dns/dns_transaction.cc:497: return ReadIntoBuffer(); On 2014/08/01 15:38:42, mmenke wrote: > ...
6 years, 4 months ago (2014-08-01 22:01:11 UTC) #6
mmenke
LGTM https://codereview.chromium.org/422323004/diff/60001/net/dns/dns_transaction_unittest.cc File net/dns/dns_transaction_unittest.cc (right): https://codereview.chromium.org/422323004/diff/60001/net/dns/dns_transaction_unittest.cc#newcode912 net/dns/dns_transaction_unittest.cc:912: // itself succeeds. Add a period after section, ...
6 years, 4 months ago (2014-08-04 15:44:29 UTC) #7
Deprecated (see juliatuttle)
https://codereview.chromium.org/422323004/diff/60001/net/dns/dns_transaction_unittest.cc File net/dns/dns_transaction_unittest.cc (right): https://codereview.chromium.org/422323004/diff/60001/net/dns/dns_transaction_unittest.cc#newcode912 net/dns/dns_transaction_unittest.cc:912: // itself succeeds. On 2014/08/04 15:44:28, mmenke wrote: > ...
6 years, 4 months ago (2014-08-04 19:29:23 UTC) #8
Deprecated (see juliatuttle)
The CQ bit was checked by ttuttle@chromium.org
6 years, 4 months ago (2014-08-04 19:29:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ttuttle@chromium.org/422323004/80001
6 years, 4 months ago (2014-08-04 19:31:39 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-04 20:49:17 UTC) #11
commit-bot: I haz the power
6 years, 4 months ago (2014-08-05 04:56:52 UTC) #12
Message was sent while issue was closed.
Change committed as 287456

Powered by Google App Engine
This is Rietveld 408576698