Fix load balancer CPU usage
This commit is contained in:
parent
14bc94ece5
commit
5bdd4a416e
1 changed files with 3 additions and 0 deletions
|
@ -140,6 +140,9 @@ namespace Mist{
|
|||
startTime = 0; // note success
|
||||
break; // break out of while loop
|
||||
}
|
||||
}else{
|
||||
//Prevent 100% CPU usage if the response is slow
|
||||
Util::sleep(25);
|
||||
}
|
||||
}
|
||||
if (startTime){
|
||||
|
|
Loading…
Add table
Reference in a new issue