Bugzilla bug #86880: Map ECONNABORTED to PR_CONNECT_ABORTED_ERROR. NSPRPUB_RELEASE_4_1_BRANCH
authorwtc%netscape.com
Wed, 20 Jun 2001 18:04:42 +0000
branchNSPRPUB_RELEASE_4_1_BRANCH
changeset 1958 cd6036be0b381ad8c1abd1e1c2cdb9b15914295a
parent 1956 44f587e4f09c9ad7a8570dbdcf38ad94299d8a87
child 1961 d3527e47da63ec5f9a7898eaff26cb21c920331c
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. Tag: NSPRPUB_RELEASE_4_1_BRANCH
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;