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

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: Merge to origin/master 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
« no previous file with comments | « net/base/net_error_list.h ('k') | net/base/net_errors_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3491b114a7a7d3c52f97950ddc05e59866032904 100644
--- a/net/base/net_errors_posix.cc
+++ b/net/base/net_errors_posix.cc
@@ -51,6 +51,8 @@ Error MapSystemError(int os_error) {
return ERR_MSG_TOO_BIG;
case ENOTCONN:
return ERR_SOCKET_NOT_CONNECTED;
+ case EISCONN:
+ return ERR_SOCKET_IS_CONNECTED;
case EINVAL:
return ERR_INVALID_ARGUMENT;
case EADDRINUSE:
« no previous file with comments | « net/base/net_error_list.h ('k') | net/base/net_errors_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698