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

Issue 2678353006: Getting rid of "benign blocking error" log spam. (Closed)

Created:
3 years, 10 months ago by Taylor Brandstetter
Modified:
3 years, 10 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Getting rid of "benign blocking error" log spam. For UDP sockets, instead of calling "recv" with "MSG_PEEK" to see if the socket is alive, just check whether or not it's been closed. It seems that, at least on some versions of Android, with some specific conditions involving loopback sockets, calling "recv" with a buffer that's too small for a UDP packet causes an EFAULT error. BUG=webrtc:6715 Review-Url: https://codereview.webrtc.org/2678353006 Cr-Commit-Position: refs/heads/master@{#16522} Committed: https://chromium.googlesource.com/external/webrtc/+/faedf7f942a216b8874ed90947bb1a8b6564af5d

Patch Set 1 #

Patch Set 2 : Don't log for EWOULDBLOCK. #

Total comments: 5

Patch Set 3 : Fix EWOULDBLOCK return. #

Patch Set 4 : Also handle EINTR #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M webrtc/base/physicalsocketserver.cc View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
nisse-webrtc
Makes sense to me. You might want to also check explicitly for EWOULDBLOCK, and only ...
3 years, 10 months ago (2017-02-09 07:37:28 UTC) #2
Taylor Brandstetter
On 2017/02/09 07:37:28, nisse-webrtc wrote: > Makes sense to me. You might want to also ...
3 years, 10 months ago (2017-02-09 09:04:21 UTC) #3
nisse-webrtc
https://codereview.webrtc.org/2678353006/diff/20001/webrtc/base/physicalsocketserver.cc File webrtc/base/physicalsocketserver.cc (right): https://codereview.webrtc.org/2678353006/diff/20001/webrtc/base/physicalsocketserver.cc#newcode718 webrtc/base/physicalsocketserver.cc:718: return true; Return value should be true for EBADF ...
3 years, 10 months ago (2017-02-09 09:29:54 UTC) #4
Taylor Brandstetter
https://codereview.webrtc.org/2678353006/diff/20001/webrtc/base/physicalsocketserver.cc File webrtc/base/physicalsocketserver.cc (right): https://codereview.webrtc.org/2678353006/diff/20001/webrtc/base/physicalsocketserver.cc#newcode718 webrtc/base/physicalsocketserver.cc:718: return true; On 2017/02/09 09:29:54, nisse-webrtc wrote: > Return ...
3 years, 10 months ago (2017-02-09 10:21:43 UTC) #5
nisse-webrtc
lgtm https://codereview.webrtc.org/2678353006/diff/20001/webrtc/base/physicalsocketserver.cc File webrtc/base/physicalsocketserver.cc (right): https://codereview.webrtc.org/2678353006/diff/20001/webrtc/base/physicalsocketserver.cc#newcode730 webrtc/base/physicalsocketserver.cc:730: return false; On 2017/02/09 10:21:43, Taylor Brandstetter wrote: ...
3 years, 10 months ago (2017-02-09 11:37:02 UTC) #6
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/2678353006/60001
3 years, 10 months ago (2017-02-09 22:10:02 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/external/webrtc/+/faedf7f942a216b8874ed90947bb1a8b6564af5d
3 years, 10 months ago (2017-02-09 23:09:31 UTC) #11
pthatcher1
3 years, 10 months ago (2017-02-10 18:15:29 UTC) #13
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698