From f9759dc61474ea448dd0f05a005435bd2c426221 Mon Sep 17 00:00:00 2001 From: "vladimir%pobox.com" Date: Tue, 7 Sep 2004 06:27:27 +0000 Subject: [PATCH] b=257732, LDAP blocks UI on multiple outstanding requests, r=mcs,sr=shaver,a=mscott git-svn-id: svn://10.0.0.236/branches/AVIARY_1_0_20040515_BRANCH@161839 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/directory/xpcom/base/src/nsLDAPConnection.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mozilla/directory/xpcom/base/src/nsLDAPConnection.cpp b/mozilla/directory/xpcom/base/src/nsLDAPConnection.cpp index 16519474224..55a840da837 100644 --- a/mozilla/directory/xpcom/base/src/nsLDAPConnection.cpp +++ b/mozilla/directory/xpcom/base/src/nsLDAPConnection.cpp @@ -589,7 +589,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 @@ -618,8 +618,9 @@ CheckLDAPOperationResult(nsHashKey *aKey, void *aData, void* aClosure) // the connection may not exist yet. sleep for a while // and try again - // - PR_LOG(gLDAPLogModule, PR_LOG_WARNING, ("ldap_result() timed out.\n")); + + // We now poll for 0, so we get a lot of this spew when debugging ldap. + //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