Bugzilla bug #86880: Map ECONNABORTED to PR_CONNECT_ABORTED_ERROR.
authorwtc%netscape.com
Wed, 20 Jun 2001 18:03:47 +0000
changeset 1957 d0de3cbd7a052c315f4ddee750ede5021ee091f4
parent 1948 a864dd4deb8de016ccddb58459cba036e6110c39
child 1963 ca75e46b43fb3ed20b91b0cf6b799a72cf03deb2
push idunknown
push userunknown
push dateunknown
bugs86880
Bugzilla bug #86880: Map ECONNABORTED to PR_CONNECT_ABORTED_ERROR. Thanks to Mark Wahl of Sun Microsystems for the bug report.
pr/src/md/unix/unix_errors.c
--- a/pr/src/md/unix/unix_errors.c
+++ b/pr/src/md/unix/unix_errors.c
@@ -72,16 +72,19 @@ void _MD_unix_map_default_error(int err)
 #ifdef EBADMSG
         case EBADMSG:
             prError = PR_IO_ERROR;
             break;
 #endif
         case EBUSY:
             prError = PR_FILESYSTEM_MOUNTED_ERROR;
             break;
+        case ECONNABORTED:
+            prError = PR_CONNECT_ABORTED_ERROR;
+            break;
         case ECONNREFUSED:
             prError = PR_CONNECT_REFUSED_ERROR;
             break;
         case ECONNRESET:
             prError = PR_CONNECT_RESET_ERROR;
             break;
         case EDEADLK:
             prError = PR_DEADLOCK_ERROR;