committing fix for ssl sites hanging mac, from wtc. a=asa MOZILLA_0_9_8_BRANCH
authorleaf%mozilla.org
Mon, 28 Jan 2002 21:36:09 +0000
branchMOZILLA_0_9_8_BRANCH
changeset 2205 c1c2bd175112cb5feac4c0795a6ef878e49b96d4
parent 2179 a8424f6b49059d855e3071dd3db1e1eaec9d1c49
child 2208 65ce3a7be17af98dda36bc82d9aebca51c181fbb
push idunknown
push userunknown
push dateunknown
reviewersasa
committing fix for ssl sites hanging mac, from wtc. a=asa
pr/src/io/prsocket.c
--- a/pr/src/io/prsocket.c
+++ b/pr/src/io/prsocket.c
@@ -342,21 +342,31 @@ static PRStatus PR_CALLBACK SocketConnec
     if (err != 0) {
         _PR_MD_MAP_CONNECT_ERROR(err);
         return PR_FAILURE;
     }
     return PR_SUCCESS;
 
 #elif defined(XP_MAC)
 
+#if 0
     err = _MD_mac_get_nonblocking_connect_error(osfd);
     if (err == -1)
         return PR_FAILURE;
 	else     
 		return PR_SUCCESS;
+#else
+	if (out_flags & PR_POLL_EXCEPT) {
+		PR_SetError(PR_CONNECT_REFUSED_ERROR, 0);
+		return PR_FAILURE;
+	}
+	
+	PR_ASSERT(out_flags & PR_POLL_WRITE);
+	return PR_SUCCESS;
+#endif
 
 #elif defined(XP_BEOS)
 
     err = _MD_beos_get_nonblocking_connect_error(fd);
     if( err != 0 ) {
 	_PR_MD_MAP_CONNECT_ERROR(err);
 	return PR_FAILURE;
     }