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

Issue 2822123002: Avoid log spam in AudioSyncReader. (Closed)

Created:
3 years, 8 months ago by Max Morin
Modified:
3 years, 8 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, xjz+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid log spam in AudioSyncReader. When the remote socket has been closed, Send will always fail, leading to frequent logging. This change limits the logging to a maximum of one log call for the lifetime of the AudioSyncReader. One log should be enough, since the likely cause of the failure is that the remote socket is closed (and this condition cannot be fixed). The log call is also updated to display OS error information. Also includes corresponding changes in AudioInputSyncWriter. BUG=711400 Review-Url: https://codereview.chromium.org/2822123002 Cr-Commit-Position: refs/heads/master@{#465578} Committed: https://chromium.googlesource.com/chromium/src/+/f38129c81c161fdd52874bf178b9110427a8c2ed

Patch Set 1 #

Total comments: 6

Patch Set 2 : reset state when recovering #

Patch Set 3 : Fix awkward comment phrasing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -12 lines) Patch
M content/browser/renderer_host/media/audio_input_sync_writer.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_sync_writer.cc View 1 3 chunks +15 lines, -6 lines 0 comments Download
M content/browser/renderer_host/media/audio_sync_reader.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/audio_sync_reader.cc View 1 2 chunks +13 lines, -6 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
Max Morin
Tommi: PTAL.
3 years, 8 months ago (2017-04-18 07:42:42 UTC) #4
tommi (sloooow) - chröme
https://codereview.chromium.org/2822123002/diff/1/content/browser/renderer_host/media/audio_input_sync_writer.cc File content/browser/renderer_host/media/audio_input_sync_writer.cc (right): https://codereview.chromium.org/2822123002/diff/1/content/browser/renderer_host/media/audio_input_sync_writer.cc#newcode334 content/browser/renderer_host/media/audio_input_sync_writer.cc:334: had_socket_error_ = true; Can we ever recover from this? ...
3 years, 8 months ago (2017-04-18 09:39:28 UTC) #7
Max Morin
https://codereview.chromium.org/2822123002/diff/1/content/browser/renderer_host/media/audio_input_sync_writer.cc File content/browser/renderer_host/media/audio_input_sync_writer.cc (right): https://codereview.chromium.org/2822123002/diff/1/content/browser/renderer_host/media/audio_input_sync_writer.cc#newcode334 content/browser/renderer_host/media/audio_input_sync_writer.cc:334: had_socket_error_ = true; On 2017/04/18 09:39:28, tommi - chröme ...
3 years, 8 months ago (2017-04-18 09:55:28 UTC) #8
Max Morin
Tommi: Ping
3 years, 8 months ago (2017-04-19 07:24:07 UTC) #9
tommi (sloooow) - chröme
https://codereview.chromium.org/2822123002/diff/1/content/browser/renderer_host/media/audio_input_sync_writer.cc File content/browser/renderer_host/media/audio_input_sync_writer.cc (right): https://codereview.chromium.org/2822123002/diff/1/content/browser/renderer_host/media/audio_input_sync_writer.cc#newcode334 content/browser/renderer_host/media/audio_input_sync_writer.cc:334: had_socket_error_ = true; On 2017/04/18 09:55:28, Max Morin wrote: ...
3 years, 8 months ago (2017-04-19 10:44:35 UTC) #10
Max Morin
https://codereview.chromium.org/2822123002/diff/1/content/browser/renderer_host/media/audio_input_sync_writer.cc File content/browser/renderer_host/media/audio_input_sync_writer.cc (right): https://codereview.chromium.org/2822123002/diff/1/content/browser/renderer_host/media/audio_input_sync_writer.cc#newcode334 content/browser/renderer_host/media/audio_input_sync_writer.cc:334: had_socket_error_ = true; On 2017/04/19 10:44:35, tommi - chröme ...
3 years, 8 months ago (2017-04-19 11:51:01 UTC) #11
tommi (sloooow) - chröme
lgtm
3 years, 8 months ago (2017-04-19 12:11:59 UTC) #12
Max Morin
Thanks!
3 years, 8 months ago (2017-04-19 12:13:14 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2822123002/40001
3 years, 8 months ago (2017-04-19 12:13:34 UTC) #15
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 13:33:11 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/f38129c81c161fdd52874bf178b9...

Powered by Google App Engine
This is Rietveld 408576698