Chromium Code Reviews
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 #
Messages
Total messages: 17 (9 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||