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

Issue 2370383002: Do not spam "Connect failed with 101/65" in logs. (Closed)

Created:
4 years, 2 months ago by skvlad
Modified:
4 years, 2 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Do not spam "Connect failed with 101/65" in logs. WebRTC polls the list of local IP addresses for both IPv4 and IPv6 every ~2 seconds. It does so by trying to connect() a UDP socket to an address on the public Internet (without actually sending any packets). If the host doesn't have IPv6 (or IPv4) connectivity, it fails with errno 101 (ENETUNREACH, Linux) or errno 65 (EHOSTUNREACH, Mac). This is the expected behavior, and we shouldn't be logging these failures, especially since polling is fairly frequent. BUG=webrtc:6347 R=deadbeef@webrtc.org, honghaiz@webrtc.org, perkj@webrtc.org Committed: https://crrev.com/7502401788fcba5c9f81a9e4701e2f0831e78698 Cr-Commit-Position: refs/heads/master@{#14440}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M webrtc/base/network.cc View 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 21 (10 generated)
Taylor Brandstetter
lgtm. Though I'm not a webrtc/base owner, so you'll need another LGTM.
4 years, 2 months ago (2016-09-28 17:24:15 UTC) #4
honghaiz3
https://codereview.webrtc.org/2370383002/diff/1/webrtc/base/network.cc File webrtc/base/network.cc (right): https://codereview.webrtc.org/2370383002/diff/1/webrtc/base/network.cc#newcode842 webrtc/base/network.cc:842: if (socket->GetError() != ENETUNREACH Should we log an error ...
4 years, 2 months ago (2016-09-28 19:36:30 UTC) #6
skvlad
https://codereview.webrtc.org/2370383002/diff/1/webrtc/base/network.cc File webrtc/base/network.cc (right): https://codereview.webrtc.org/2370383002/diff/1/webrtc/base/network.cc#newcode842 webrtc/base/network.cc:842: if (socket->GetError() != ENETUNREACH On 2016/09/28 19:36:30, honghaiz3 wrote: ...
4 years, 2 months ago (2016-09-28 21:22:55 UTC) #7
honghaiz3
lgtm https://codereview.webrtc.org/2370383002/diff/1/webrtc/base/network.cc File webrtc/base/network.cc (right): https://codereview.webrtc.org/2370383002/diff/1/webrtc/base/network.cc#newcode842 webrtc/base/network.cc:842: if (socket->GetError() != ENETUNREACH On 2016/09/28 21:22:54, skvlad ...
4 years, 2 months ago (2016-09-28 21:33:05 UTC) #8
skvlad
https://codereview.webrtc.org/2370383002/diff/1/webrtc/base/network.cc File webrtc/base/network.cc (right): https://codereview.webrtc.org/2370383002/diff/1/webrtc/base/network.cc#newcode842 webrtc/base/network.cc:842: if (socket->GetError() != ENETUNREACH On 2016/09/28 21:33:05, honghaiz3 wrote: ...
4 years, 2 months ago (2016-09-28 22:27:46 UTC) #9
skvlad
Added more owners of webrtc/base - could one of you please review? Thanks!
4 years, 2 months ago (2016-09-28 22:28:48 UTC) #11
perkj_webrtc
rs lgtm
4 years, 2 months ago (2016-09-29 09:34:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2370383002/1
4 years, 2 months ago (2016-09-29 17:46:27 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 2 months ago (2016-09-29 19:47:11 UTC) #16
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/7502401788fcba5c9f81a9e4701e2f0831e78698 Cr-Commit-Position: refs/heads/master@{#14440}
4 years, 2 months ago (2016-09-29 19:59:51 UTC) #19
skvlad
4 years, 2 months ago (2016-09-29 19:59:51 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
7502401788fcba5c9f81a9e4701e2f0831e78698 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698