Stop accessing P2P sockets after being closed due to error
As an example: P2PSocketTcpBase::DoRead already stops looping if result <= 0, but a delayed read result handled by OnRead doesn't. Earlier, the socket entered an ERROR state after OnError() was called, which would stop reads from continuing. This CL fixes that issue and similar issues when sending and when using UDP. Bug: 881260 Cq-Include-Trybots: luci.chromium.try:linux_mojo Change-Id: If7cd62b36705f69cfd95a71908d610cc871561b0 Reviewed-on: https://chromium-review.googlesource.com/1219390Reviewed-by:Sergey Ulanov <sergeyu@chromium.org> Commit-Queue: Sergey Ulanov <sergeyu@chromium.org> Cr-Commit-Position: refs/heads/master@{#590539}
Showing
Please register or sign in to comment