зеркало из https://github.com/mozilla/gecko-dev.git
Partial fix for LDAP blocking UI on multiple outstanding requests (bug 257732), patch=vladimir@pobox.com, r=mcs@pearlcrescent.com, sr=shaver@mozilla.org
This commit is contained in:
Родитель
b2b940da13
Коммит
6b25f2edb5
|
@ -593,7 +593,7 @@ CheckLDAPOperationResult(nsHashKey *aKey, void *aData, void* aClosure)
|
|||
LDAPMessage *msgHandle;
|
||||
nsCOMPtr<nsILDAPMessage> 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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче