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

Issue 2057973002: [serial] When a read is requested on posix platforms, try the read immediately. (Closed)

Created:
4 years, 6 months ago by aschulman
Modified:
4 years, 4 months ago
CC:
charliea (OOO until 10-5), chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[serial] When a read is requested on posix platforms, try the read immediately. On some posix platforms (e.g., OSX) the first read after a serial device is opened may never complete. The problem is on these platforms the message loop will not notify that a file descriptor is ready to read if it was in that state when it was opened. This fixed this problem by trying to perform a read immediately after it is requested. BUG=618911 Committed: https://crrev.com/b09276a67a58e6aa0c23d8a052f0b7bd4c9ca668 Cr-Commit-Position: refs/heads/master@{#408467}

Patch Set 1 #

Patch Set 2 : Prevent unexpected reentrancy #

Total comments: 2

Patch Set 3 : Removed unnecessary watch cancel. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -7 lines) Patch
M device/serial/serial_io_handler_posix.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M device/serial/serial_io_handler_posix.cc View 1 2 4 chunks +32 lines, -7 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
aschulman
4 years, 6 months ago (2016-06-10 07:42:21 UTC) #3
Reilly Grant (use Gerrit)
An annoying problem you're going to have with this patch is that by trying to ...
4 years, 6 months ago (2016-06-10 17:48:37 UTC) #4
aschulman
On 2016/06/10 17:48:37, Reilly Grant wrote: > An annoying problem you're going to have with ...
4 years, 4 months ago (2016-07-27 06:24:32 UTC) #5
Reilly Grant (use Gerrit)
lgtm with a nit https://codereview.chromium.org/2057973002/diff/20001/device/serial/serial_io_handler_posix.cc File device/serial/serial_io_handler_posix.cc (right): https://codereview.chromium.org/2057973002/diff/20001/device/serial/serial_io_handler_posix.cc#newcode352 device/serial/serial_io_handler_posix.cc:352: // Stop watching the fd ...
4 years, 4 months ago (2016-07-27 21:23:39 UTC) #6
aschulman
https://codereview.chromium.org/2057973002/diff/20001/device/serial/serial_io_handler_posix.cc File device/serial/serial_io_handler_posix.cc (right): https://codereview.chromium.org/2057973002/diff/20001/device/serial/serial_io_handler_posix.cc#newcode352 device/serial/serial_io_handler_posix.cc:352: // Stop watching the fd because a read completed ...
4 years, 4 months ago (2016-07-28 03:11:00 UTC) #7
Reilly Grant (use Gerrit)
On 2016/07/28 at 03:11:00, aschulman wrote: > https://codereview.chromium.org/2057973002/diff/20001/device/serial/serial_io_handler_posix.cc > File device/serial/serial_io_handler_posix.cc (right): > > https://codereview.chromium.org/2057973002/diff/20001/device/serial/serial_io_handler_posix.cc#newcode352 ...
4 years, 4 months ago (2016-07-28 18:01:19 UTC) #8
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/2057973002/40001
4 years, 4 months ago (2016-07-28 19:48:55 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-07-28 20:39:35 UTC) #13
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 20:41:52 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b09276a67a58e6aa0c23d8a052f0b7bd4c9ca668
Cr-Commit-Position: refs/heads/master@{#408467}

Powered by Google App Engine
This is Rietveld 408576698