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

Unified Diff: net/base/net_errors_posix.cc

Issue 14666002: Adding ERR_SOCKET_IS_CONNECTED. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add ERR_SOCKET_IS_CONNECTED to MapSystemError Created 7 years, 8 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_posix.cc
diff --git a/net/base/net_errors_posix.cc b/net/base/net_errors_posix.cc
index 8e9c7d52092bcf65205ad29e34fff78c6abc68d0..ba5f45a3003e0f7f502aa425a0fb4d12c0eace37 100644
--- a/net/base/net_errors_posix.cc
+++ b/net/base/net_errors_posix.cc
@@ -107,6 +107,8 @@ Error MapSystemError(int os_error) {
return ERR_INSUFFICIENT_RESOURCES;
case EMFILE: // Too many open files.
return ERR_INSUFFICIENT_RESOURCES;
+ case EISCONN:
+ return ERR_SOCKET_IS_CONNECTED;
case 0:
return OK;

Powered by Google App Engine
This is Rietveld 408576698