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:
parent
09dbdfb79f
commit
a43388bace
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue