Bug #53776 [Opn->Asn]: soap module does not allow to use underlying persistent connections
| From: | felipe@php.net | Date: | Sun, 29 May 2011 16:45:33 +0000 |
| Subject: | Bug #53776 [Opn->Asn]: soap module does not allow to use underlying persistent connections | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-161037@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53776&edit=1
ID: 53776
Updated by: felipe@php.net
Reported by: christian dot boitel at gmail dot com
Summary: soap module does not allow to use underlying
persistent connections
-Status: Open
+Status: Assigned
Type: Bug
Package: SOAP related
Operating System: Linux
PHP Version: 5.3.5
-Assigned To:
+Assigned To: dmitry
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2011-01-18 12:12:27] christian dot boitel at gmail dot com
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 this bug report at http://bugs.php.net/bug.php?id=53776&edit=1