зеркало из 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;
|
LDAPMessage *msgHandle;
|
||||||
nsCOMPtr<nsILDAPMessage> msg;
|
nsCOMPtr<nsILDAPMessage> msg;
|
||||||
PRBool operationFinished = PR_TRUE;
|
PRBool operationFinished = PR_TRUE;
|
||||||
struct timeval timeout = { 1, 0 };
|
struct timeval timeout = { 0, 0 };
|
||||||
PRIntervalTime sleepTime = PR_MillisecondsToInterval(40);
|
PRIntervalTime sleepTime = PR_MillisecondsToInterval(40);
|
||||||
|
|
||||||
// we need to access some of the connection loop's objects
|
// 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
|
case 0: // timeout
|
||||||
|
|
||||||
// the connection may not exist yet. sleep for a while
|
// the connection may not exist yet. sleep for a while
|
||||||
// and try again
|
// to avoid a problem where the LDAP connection/thread isn't
|
||||||
//
|
// ready quite yet, and we want to avoid a very busy loop.
|
||||||
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.
|
|
||||||
//
|
//
|
||||||
PR_Sleep(sleepTime);
|
PR_Sleep(sleepTime);
|
||||||
return PR_TRUE;
|
return PR_TRUE;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче