Remove check against fd->secret->md.connectionReturnValue as it always returns 0. Fixing page not loading due to nonblocking connection problem. NSPRPUB_PRE_4_2_CLIENT_BRANCH
authorseawood%netscape.com
Thu, 31 Jan 2002 07:41:49 +0000
branchNSPRPUB_PRE_4_2_CLIENT_BRANCH
changeset 2210 e1799636d73188f755bb3fe839c0ebd956e1117d
parent 2206 aef8a4c376e1acef98e39e0681a7a489b9a2b04d
child 2211 5614318b25192e9f66dec8b2e595d4b5b938a24b
child 2223 2a1ae64be364dce04cdd83e614c02340a38a8ab7
push idunknown
push userunknown
push dateunknown
bugs121327
Remove check against fd->secret->md.connectionReturnValue as it always returns 0. Fixing page not loading due to nonblocking connection problem. Bug #121327 r=arougthopher@lizardland.net
pr/src/md/beos/bnet.c
--- a/pr/src/md/beos/bnet.c
+++ b/pr/src/md/beos/bnet.c
@@ -807,24 +807,16 @@ PRInt32 rv, err;
 
 #ifndef BONE_VERSION
 PRInt32
 _MD_beos_get_nonblocking_connect_error(PRFileDesc *fd)
 {
     int rv;
     int flags = 0;
 
-    if( fd->secret->md.connectValueValid == PR_TRUE )
-
-	if( fd->secret->md.connectReturnValue == -1 )
-
-	    return fd->secret->md.connectReturnError;
-	else
-	    return 0;  /* No error */
-
     rv = recv(fd->secret->md.osfd, NULL, 0, flags);
     PR_ASSERT(-1 == rv || 0 == rv);
     if (-1 == rv && errno != EAGAIN && errno != EWOULDBLOCK) {
         return errno;
     }
     return 0;  /* no error */
 }
 #else