Increase the timeout to 30000 microseconds.
30,000 Microseconds = 0.03 Seconds. Longer timeout reduces the CPU. If the timeout is too long then the Status -> SIP STATUS page will take longer to load.
This commit is contained in:
@@ -112,8 +112,7 @@ class event_socket {
|
|||||||
if (!$fp) {
|
if (!$fp) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
socket_set_timeout($fp, 0, 30000);
|
||||||
socket_set_timeout($fp, 0, 1000);
|
|
||||||
socket_set_blocking($fp, true);
|
socket_set_blocking($fp, true);
|
||||||
$this->fp = $fp;
|
$this->fp = $fp;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user