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

Issue 1911353003: [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@master
Target Ref:
refs/pending/heads/master
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. Committed: https://crrev.com/943b9ad8edd8185defebc09d5917242122833cc4 Cr-Commit-Position: refs/heads/master@{#389379}

Patch Set 1 : #

Total comments: 7

Patch Set 2 : Address comments #

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 1 2 chunks +47 lines, -0 lines 0 comments Download
M components/cronet/android/test/src/org/chromium/net/QuicTestServer.java View 1 1 chunk +17 lines, -1 line 0 comments Download

Messages

Total messages: 18 (10 generated)
xunjieli
Hi Andrei, I think what our embedder has seen is probably due to this. When ...
4 years, 8 months ago (2016-04-22 22:44:07 UTC) #7
kapishnikov
Helen, thank you for diagnosing and fixing the issue. The change looks good, just couple ...
4 years, 8 months ago (2016-04-23 00:29:47 UTC) #8
xunjieli
Thanks for the review! https://codereview.chromium.org/1911353003/diff/60001/components/cronet/android/cronet_bidirectional_stream_adapter.cc File components/cronet/android/cronet_bidirectional_stream_adapter.cc (right): https://codereview.chromium.org/1911353003/diff/60001/components/cronet/android/cronet_bidirectional_stream_adapter.cc#newcode291 components/cronet/android/cronet_bidirectional_stream_adapter.cc:291: if (stream_failed_) { On 2016/04/23 ...
4 years, 8 months ago (2016-04-23 10:39:00 UTC) #10
kapishnikov
Looks good! LGTM https://codereview.chromium.org/1911353003/diff/60001/components/cronet/android/cronet_bidirectional_stream_adapter.cc File components/cronet/android/cronet_bidirectional_stream_adapter.cc (right): https://codereview.chromium.org/1911353003/diff/60001/components/cronet/android/cronet_bidirectional_stream_adapter.cc#newcode291 components/cronet/android/cronet_bidirectional_stream_adapter.cc:291: if (stream_failed_) { On 2016/04/23 10:39:00, ...
4 years, 8 months ago (2016-04-23 14:33:37 UTC) #11
xunjieli
Thanks, Andrei. (Looks like iOS might have the same problem, so we probably need to ...
4 years, 8 months ago (2016-04-23 15:30:49 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1911353003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1911353003/80001
4 years, 8 months ago (2016-04-23 15:30:58 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:80001)
4 years, 8 months ago (2016-04-23 16:13:59 UTC) #16
commit-bot: I haz the power
4 years, 8 months ago (2016-04-23 16:15:50 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/943b9ad8edd8185defebc09d5917242122833cc4
Cr-Commit-Position: refs/heads/master@{#389379}

Powered by Google App Engine
This is Rietveld 408576698