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

Issue 15881008: DnsTransaction::RecordLostPacketsIfAny shouldn't crash if some attempts failed to connect and thus … (Closed)

Created:
7 years, 6 months ago by mef
Modified:
7 years, 6 months ago
Reviewers:
szym
CC:
chromium-reviews, cbentzel+watch_chromium.org, mmenke
Visibility:
Public.

Description

DnsTransaction::RecordLostPacketsIfAny shouldn't crash if some attempts failed to connect and thus have NULL socket_lease. BUG=244507 TEST=net_unittests --gtest_filter=DnsTransactionTest.ConnectFailureFollowedBySuccess Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202967

Patch Set 1 #

Patch Set 2 : Fixed lint error. #

Total comments: 10

Patch Set 3 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -8 lines) Patch
M net/dns/dns_transaction.cc View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M net/dns/dns_transaction_unittest.cc View 1 2 4 chunks +20 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
mef
Szymon, could you take a look? I was able to reproduce and fix the crash. ...
7 years, 6 months ago (2013-05-29 16:23:12 UTC) #1
szym
lgtm https://codereview.chromium.org/15881008/diff/1003/net/dns/dns_transaction.cc File net/dns/dns_transaction.cc (right): https://codereview.chromium.org/15881008/diff/1003/net/dns/dns_transaction.cc#newcode812 net/dns/dns_transaction.cc:812: // calculated from attempt index nit: Format like ...
7 years, 6 months ago (2013-05-29 17:09:42 UTC) #2
szym
Also, please add to CL description: TEST=net_unittests --gtest_filter=DnsTransactionTest.<name of the new test> or at least ...
7 years, 6 months ago (2013-05-29 17:11:30 UTC) #3
mef
Done. Thanks for review! https://codereview.chromium.org/15881008/diff/1003/net/dns/dns_transaction.cc File net/dns/dns_transaction.cc (right): https://codereview.chromium.org/15881008/diff/1003/net/dns/dns_transaction.cc#newcode812 net/dns/dns_transaction.cc:812: // calculated from attempt index ...
7 years, 6 months ago (2013-05-29 17:24:04 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mef@chromium.org/15881008/9001
7 years, 6 months ago (2013-05-29 18:33:00 UTC) #5
commit-bot: I haz the power
7 years, 6 months ago (2013-05-29 21:06:12 UTC) #6
Message was sent while issue was closed.
Change committed as 202967

Powered by Google App Engine
This is Rietveld 408576698