Revert "Delay Channel::OnError() in case of kDisconnected during Write()."
This reverts commit e9605182. Reason for revert: Findit (https://goo.gl/kROfz5) identified CL at revision 542634 as the culprit for failures in the build cycles as shown on: https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3ItbWVyRAsSDVdmU3VzcGVjdGVkQ0wiMWNocm9taXVtL2U5NjA1MTgyNTE4Njc4NDVlZDIzYmYyYWI4ZjA0MmE3N2FmZTE4ODUM Sample Failed Build: https://ci.chromium.org/buildbot/chromium.memory/Linux%20MSan%20Tests/8479 Sample Failed Step: mojo_unittests Original change's description: > Delay Channel::OnError() in case of kDisconnected during Write(). > > Write() operations to a Channel can fail due to the peer having closed > it, while there are still messages waiting to be read from it. We must > therefore defer notifying the caller of the Channel::Error until we > observe end-of-stream via a readable notification, otherwise those > messages may be dropped (depending on whether the posted OnError task > is processed before or after a pending Channel-readable event). > > Bug: 816620 > Change-Id: I75bd34a48edf4022809d27ce49f9cfba7a5d4daf > Reviewed-on: https://chromium-review.googlesource.com/956932 > Commit-Queue: Wez <wez@chromium.org> > Reviewed-by: Ken Rockot <rockot@chromium.org> > Cr-Commit-Position: refs/heads/master@{#542634} Change-Id: I9d212ecb8dde1e90422b60e950547e823357f0d4 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 816620 Reviewed-on: https://chromium-review.googlesource.com/959761 Cr-Commit-Position: refs/heads/master@{#542698}
Showing
Please register or sign in to comment