Closed TwinMist closed 5 years ago
If you're using SOAP, you can adjust the SoapClient
options (including timeout) by using the new $options
argument to OcipClient
. According to the documentation, you may also need to increase the value of system setting default_socket_timeout.
So something along the lines of:
ini_set('default_socket_timeout', 3600);
$options = (new Options())
->setSoapClientOptions([
'connection_timeout' => 3600
]);
$ocipClient = new OcipClient($url, $username, $password, $options)
No using tcp
On Sun, 11 Nov 2018, 17:19 Chase Miller <notifications@github.com wrote:
If you're using SOAP, you can adjust the SoapClient options (including timeout) by using the new $options argument to OcipClient. According to the documentation, you may also need to increase the value of system setting default_socket_timeout http://php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout .
So something along the lines of:
init_set('default_socket_timeout', 3600);$options = (new Options()) ->setSoapClientOptions([ 'connection_timeout' => 3600 ]);$ocipClient = new OcipClient($url, $username, $password, $options)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cwmiller/broadworks-connector/issues/23#issuecomment-437687720, or mute the thread https://github.com/notifications/unsubscribe-auth/ADRHy_l8DAL-gwzqA9Xm88g96cWtL2Xsks5uuFwRgaJpZM4YWt2M .
If using TCP, then I believe the only thing you need to do is set default_socket_timeout
like in my example above. Set the 2nd argument to amount of seconds you want as the timeout.
Hi, Is there any timeout value you can set when doing lots of queries? i am getting a lot of PHP Fatal error: Not found etc, but if i run it again it returns a value
thanks