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

Issue 1924623002: [Cronet] Do not call into BidirectionalStream::SendData if stream failed (Closed)

Created:
4 years, 8 months ago by xunjieli
Modified:
4 years, 8 months ago
Reviewers:
kapishnikov
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@2704
Target Ref:
refs/pending/branch-heads/2704
Project:
chromium
Visibility:
Public.

Description

[Cronet] Do not call into BidirectionalStream::SendData if stream failed Cronet currently posts a task to the network thread to write data to the stream. However, between the time when the task is posted on Java thread and when the task is executed on the network thread, the underlying stream might have failed for some reason (e.g. server terminated the connection). If that is the case, we should not call into the stream. Without this patch, when running the new unit test with asan enabled, we will have a crash. Review URL: https://codereview.chromium.org/1911353003 Cr-Commit-Position: refs/heads/master@{#389379} (cherry picked from commit 943b9ad8edd8185defebc09d5917242122833cc4) NOTRY=true NOPRESUBMIT=true TBR=kapishnikov@chromium.org BUG=606394

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -2 lines) Patch
M components/cronet/android/cronet_bidirectional_stream_adapter.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/cronet/android/cronet_bidirectional_stream_adapter.cc View 3 chunks +10 lines, -1 line 0 comments Download
M components/cronet/android/test/javatests/src/org/chromium/net/BidirectionalStreamQuicTest.java View 2 chunks +47 lines, -0 lines 0 comments Download
M components/cronet/android/test/src/org/chromium/net/QuicTestServer.java View 1 chunk +17 lines, -1 line 0 comments Download

Messages

Total messages: 17 (9 generated)
xunjieli
Hi Andrei, this is to merge into M51. If possible, we should get this in ...
4 years, 8 months ago (2016-04-26 20:47:38 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1924623002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1924623002/1
4 years, 8 months ago (2016-04-26 20:48:27 UTC) #4
commit-bot: I haz the power
Dry run: CLs for remote refs other than refs/pending/heads/master must contain NOTRY=true and NOPRESUBMIT=true in ...
4 years, 8 months ago (2016-04-26 20:48:29 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1924623002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1924623002/1
4 years, 8 months ago (2016-04-26 20:50:05 UTC) #9
commit-bot: I haz the power
CLs for remote refs other than refs/pending/heads/master must contain NOTRY=true and NOPRESUBMIT=true in order for ...
4 years, 8 months ago (2016-04-26 20:50:07 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1924623002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1924623002/1
4 years, 8 months ago (2016-04-26 20:57:23 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-26 21:03:42 UTC) #16
kapishnikov
4 years, 8 months ago (2016-04-26 21:33:37 UTC) #17
Message was sent while issue was closed.
LGTM!

Powered by Google App Engine
This is Rietveld 408576698