ID: 41943 Updated by: [EMAIL PROTECTED] Reported By: simon at connexon dot com -Status: Open +Status: Feedback Bug Type: SOAP related Operating System: Windows Server 2003 PHP Version: 5.2.3 Assigned To: dmitry New Comment:
On Windows I just called CLI PHP that accessed SOAP server on Linux/Apache. Previous Comments: ------------------------------------------------------------------------ [2007-07-30 21:39:53] simon at connexon dot com Hi dmitry, were you using apache or IIS under windows? We are using IIS. Perhaps it is the source of the problem... I will be doing more testing on this later this week. Please let me know. Thank you. ------------------------------------------------------------------------ [2007-07-25 06:25:38] [EMAIL PROTECTED] I am not able to reproduce this. I created a simple client that accesses server over HTTPS: <?php $client = new SoapClient(NULL,array( "location"=> "https://tpl/~dmitry/soap/examples/server4.php", "uri" => "test://")); echo $client->getQuote("ibm"); ?> and server that sleeps for 15 seconds: <?php $quotes = array( "ibm" => 98.42 ); function getQuote($symbol) { global $quotes; sleep(15); return $quotes[$symbol]; } //ob_start("ob_gzhandler"); $server = new SoapServer("stockquote1.wsdl"); $server->addFunction("getQuote"); $server->handle(); ?> and I don't see any CPU load: [EMAIL PROTECTED] CGI-DEBUG]$ time sapi/cli/php /home/dmitry/public_html/soap/examples/client8.php 98.42 real 0m15.105s user 0m0.006s sys 0m0.033s I also run the same client on Windows looking into "perfmon" and CPU load was about 0% during waiting. Please provide a COMPLETE reproducable case (client that access external SOAP server, or local client and srver), if you like me to fix the behavior. ------------------------------------------------------------------------ [2007-07-13 12:35:25] simon at connexon dot com How do we do traces? however I was able to isolate the problem. It's SSL that is causing CPU spikes. I ran a soap location with HTTP://, then the CPU would "idle" while it's waiting for a response, however using HTTPS:// the CPU really goes nuts! Is this a problem in the core of PHP itself? ------------------------------------------------------------------------ [2007-07-11 07:08:46] [EMAIL PROTECTED] Could you plese post strace of process or/and call-trace of PHP during it eats CPU. ------------------------------------------------------------------------ [2007-07-09 20:13:37] simon at connexon dot com <? $client = new SoapClient($wsdl_location, $params); $date_time = date("Y-m-d H:i:s"); $ws_params = array("valAddressMsg" => "aaa"); $this->result = $this->handle->__soapCall("ValA", $ws_params); if ($debug) $this->displayMessageInfo(); $this->handleFault($this->result); ?> When the code gets to "$this->handle->__soapCall..." we recognize the fact that when PHP is waiting for a soap response the CPU is blocked. However this is not a good behavior as of we need the CPU to do other things also. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/41943 -- Edit this bug report at http://bugs.php.net/?id=41943&edit=1