ID: 38163 Updated by: [EMAIL PROTECTED] Reported By: imthiazj2 at hcl dot in -Status: Assigned +Status: Feedback Bug Type: SOAP related Operating System: Solaris PHP Version: 5.1.4 Assigned To: dmitry New Comment:
I cannot reproduce hangup. 1. May be your web server runs just one process and cannot accept connection. Try to add "connection_timeout" into SoapClient constructor. $client = new SoapClient(NULL, array("connection_timeout => 10, ... 2. In case if you are calling one-way operation without response, you should add additional argument (one_way operation) to __doRequest() call. result = $client->__doRequest("",$locationwithdata,"",1,1); Previous Comments: ------------------------------------------------------------------------ [2006-07-25 14:57:59] imthiazj2 at hcl dot in I don't connect to soap server, I connect it to http server. Nothing is sent back to the php. ------------------------------------------------------------------------ [2006-07-25 09:23:32] [EMAIL PROTECTED] SoapClient::__doRequest() shouldn't return fault it should return SOAP response (XML representation). Use SoapClient::__soapCall() instead and you will get fault. BTW PHP shouldn't hang. How does SOAP server respond? (HTTP headers, timeouts, response body) ------------------------------------------------------------------------ [2006-07-24 09:48:59] imthiazj2 at hcl dot in Hi, I used the php version of 5.2. But still the problem is existing and the whole apache is getting hang and not processing further request. It needs restart of the apache. Can you please help me overcome this problem. Thanks J.Imthiaz ------------------------------------------------------------------------ [2006-07-20 14:54:52] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip ------------------------------------------------------------------------ [2006-07-20 14:43:12] imthiazj2 at hcl dot in Description: ------------ Hi, I am connecting a http server, using soap client.Since the http server is not responding, the soap client remains connecting to it.So the apache port becomes in time_wait and it stops listening from further request. It leads to a situation where the apache has to be restarted. It is similar to 33765, but here the server is not responding, so the apache hangs Reproduce code: --------------- $client = new SoapClient(NULL, array( "location" => $location, "login" => "root", "uri" => "urn:gsnmp", "password" => "12345678", "exceptions" => 1, "trace" => 1, "features"=>SOAP_WAIT_ONE_WAY_CALLS )); ini_set('default_socket_timeout', 10) $result = $client->__doRequest("",$locationwithdata,"",1); Expected result: ---------------- The soap client should wait for few seconds and returns error or soap fault. So that it should avoid from apache hanging. Actual result: -------------- It makes apache server to hang and needs to restart for processing further request ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38163&edit=1