From: Operating system: Linux PHP version: 5.3.5 Package: SOAP related Bug Type: Bug Bug description:soap module does not allow to use underlying persistent connections
Description: ------------ While investigating, we found the soap module (SoapClient) is able to request a keep-alive HTTP persistent connection (if http/persistent_connection context option is set to 1.1, the default): 1/ if you send multiple requests within the same test script, it will correctly reuse the connection 2/ whenever the script ends, connection is released and future calls to the same script will end in re-establishing a new HTTP connection (which can be CPU intensive when SSL is used) We found the issue being related to a call to php_stream_xport_create within ext/soap/php_http.c where persistent_id parameter is hard coded to be NULL. Proposed patch will look at a new stream options named "soap/http_persistent": - if it set to true, it will fill-in persistent_id param with connection name (ex: tcp://host:port or ssl://host:port) - if it is not set or set to false, persistent_id param remains NULL and actual behavior is kept -- Edit bug report at http://bugs.php.net/bug.php?id=53776&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53776&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53776&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53776&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53776&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53776&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53776&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53776&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53776&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53776&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53776&r=support Expected behavior: http://bugs.php.net/fix.php?id=53776&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53776&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53776&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53776&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53776&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53776&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53776&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53776&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53776&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53776&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53776&r=mysqlcfg
