Answer the question
In order to leave comments, you need to log in
Website freezes when working with soap?
When the script is executed, a soap wsdl connection occurs, so if the server to which soap connects does not work, then the site simply freezes, and no one can load it normally. I tried to set timeouts, but they don’t help, or I set them wrong. Can anyone help, where to dig why the site freezes, and how to solve the problem?
Answer the question
In order to leave comments, you need to log in
Code or settings for setting timeouts and duration of dependencies?
ini_set("default_socket_timeout", 15);
"connection_timeout" => 15
hangs in different ways from 1 minute to 10-15 minutes
The connection_timeout option specifies the timeout in seconds for connecting to the SOAP service. This option does not set a timeout for services with slow responses. Default_socket_timeout is used to limit call timeout.
php.net/manual/ru/soapclient.soapclient.php
When initializing the Soap client, a timeout is set.
SOAP does not always obey php.ini rules
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question