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:
FusionPBX 2022-08-27 16:45:07 -06:00 committed by GitHub
parent 09dbdfb79f
commit a43388bace
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -112,8 +112,7 @@ class event_socket {
if (!$fp) {
return false;
}
socket_set_timeout($fp, 0, 1000);
socket_set_timeout($fp, 0, 30000);
socket_set_blocking($fp, true);
$this->fp = $fp;