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

Issue 2217513002: [battor_agent] Clear pending read buffer if it contains an irrevocable error.

Created:
4 years, 4 months ago by aschulman
Modified:
4 years, 1 month ago
Reviewers:
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

On certain platforms (ok really just on Mac), the serial connection can contain old data from a previous serial connection. This means that the first bytes read will be garbage from a prior connection. Previously, could have lead to an irrevocable error and the message reads would just fail over and over because the pending read buffer contains such an error. This CL fixes this problem by clearingo out the pending read buffer when it contains an irrevocable error. BUG=634188

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M tools/battor_agent/battor_connection_impl.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 8 (4 generated)
aschulman
4 years, 4 months ago (2016-08-04 15:53:47 UTC) #3
aschulman
On 2016/08/04 15:53:47, aschulman wrote: I guess maybe it would be good to also add ...
4 years, 4 months ago (2016-08-04 15:55:33 UTC) #4
charliea (OOO until 10-5)
On 2016/08/04 15:55:33, aschulman wrote: > On 2016/08/04 15:53:47, aschulman wrote: > > I guess ...
4 years, 4 months ago (2016-08-04 16:33:10 UTC) #5
charliea (OOO until 10-5)
4 years, 2 months ago (2016-10-10 14:26:19 UTC) #7
Removing myself, as I don't think this is still relevant: please feel free to
add me back if I should review it

Powered by Google App Engine
This is Rietveld 408576698