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

Unified Diff: mojo/system/channel.cc

Issue 462563003: Mojo: Plumb "connection broken" out of RawChannel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/system/raw_channel.h » ('j') | mojo/system/raw_channel_posix.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/channel.cc
diff --git a/mojo/system/channel.cc b/mojo/system/channel.cc
index bc912e8a8405fff1fc473857c9cfee4e3f21d1c8..2d78242f40827ab47b09317318261c22b377a0fb 100644
--- a/mojo/system/channel.cc
+++ b/mojo/system/channel.cc
@@ -296,6 +296,9 @@ void Channel::OnError(Error error) {
// The other side was cleanly closed, so this isn't actually an error.
DVLOG(1) << "RawChannel read error (shutdown)";
break;
+ case ERROR_READ_BROKEN:
+ LOG(ERROR) << "RawChannel read error (connection broken)";
+ break;
case ERROR_READ_BAD_MESSAGE:
// Receiving a bad message means either a bug, data corruption, or
// malicious attack (probably due to some other bug).
« no previous file with comments | « no previous file | mojo/system/raw_channel.h » ('j') | mojo/system/raw_channel_posix.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698