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

Unified Diff: net/base/net_errors_win.cc

Issue 24409004: Disconnect native messaging port on read pipe EOF. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
Index: net/base/net_errors_win.cc
diff --git a/net/base/net_errors_win.cc b/net/base/net_errors_win.cc
index 2cde82f4d25c194d7a67742b9e25618ab3af1d23..7f27deec7ef4c0f029ea5ea20be9c235584bfeb7 100644
--- a/net/base/net_errors_win.cc
+++ b/net/base/net_errors_win.cc
@@ -110,6 +110,8 @@ Error MapSystemError(int os_error) {
return ERR_ACCESS_DENIED; // been detected.
case ERROR_BAD_DEVICE: // The specified device name is invalid.
return ERR_INVALID_ARGUMENT;
+ case ERROR_BROKEN_PIPE: // Pipe is not connected.
+ return ERR_CONNECTION_RESET;
wtc 2013/09/25 23:03:12 On Unix, we map EPIPE to ERR_CONNECTION_RESET. The
case ERROR_SUCCESS:
return OK;

Powered by Google App Engine
This is Rietveld 408576698