From 6b25f2edb52ff0ad174fdbf2ead8b117839d0d56 Mon Sep 17 00:00:00 2001 From: "dmose%mozilla.org" Date: Mon, 4 Apr 2005 21:22:57 +0000 Subject: [PATCH] Partial fix for LDAP blocking UI on multiple outstanding requests (bug 257732), patch=vladimir@pobox.com, r=mcs@pearlcrescent.com, sr=shaver@mozilla.org --- directory/xpcom/base/src/nsLDAPConnection.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/directory/xpcom/base/src/nsLDAPConnection.cpp b/directory/xpcom/base/src/nsLDAPConnection.cpp index 3dff87076c95..050fedcc89e2 100644 --- a/directory/xpcom/base/src/nsLDAPConnection.cpp +++ b/directory/xpcom/base/src/nsLDAPConnection.cpp @@ -593,7 +593,7 @@ CheckLDAPOperationResult(nsHashKey *aKey, void *aData, void* aClosure) LDAPMessage *msgHandle; nsCOMPtr msg; PRBool operationFinished = PR_TRUE; - struct timeval timeout = { 1, 0 }; + struct timeval timeout = { 0, 0 }; PRIntervalTime sleepTime = PR_MillisecondsToInterval(40); // we need to access some of the connection loop's objects @@ -621,13 +621,8 @@ CheckLDAPOperationResult(nsHashKey *aKey, void *aData, void* aClosure) case 0: // timeout // the connection may not exist yet. sleep for a while - // and try again - // - PR_LOG(gLDAPLogModule, PR_LOG_WARNING, ("ldap_result() timed out.\n")); - - // The sleep here is to avoid a problem where the LDAP - // Connection/thread isn't ready quite yet, and we want to - // avoid a very busy loop. + // to avoid a problem where the LDAP connection/thread isn't + // ready quite yet, and we want to avoid a very busy loop. // PR_Sleep(sleepTime); return PR_TRUE;