V
V
Vadim2016-05-24 14:39:18
PHP
Vadim, 2016-05-24 14:39:18

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

3 answer(s)
#
#algooptimize #bottize, 2016-05-24
@user004

Code or settings for setting timeouts and duration of dependencies?

V
Vadim, 2016-05-24
@zomik

ini_set("default_socket_timeout", 15);
"connection_timeout" => 15
hangs in different ways from 1 minute to 10-15 minutes

D
devian3000, 2016-06-07
@devian3000

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 question

Ask a Question

731 491 924 answers to any question