php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53776 soap module does not allow to use underlying persistent connections
Submitted: 2011-01-18 12:12 UTC Modified: 2017-10-24 07:55 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: christian dot boitel at gmail dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 5.3.5 OS: Linux
Private report: No CVE-ID: None
 [2011-01-18 12:12 UTC] 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






Patches

soap_patch (last revision 2011-01-18 11:14 UTC by christian dot boitel at gmail dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-29 18:45 UTC] felipe@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: dmitry
 [2017-10-24 07:55 UTC] kalle@php.net
-Status: Assigned +Status: Open -Assigned To: dmitry +Assigned To:
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC