|  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
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: christian dot boitel at gmail dot com
New email:
PHP Version: OS:


 [2011-01-18 12:12 UTC] christian dot boitel at gmail dot com
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


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

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-29 18:45 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: dmitry
 [2017-10-24 07:55 UTC]
-Status: Assigned +Status: Open -Assigned To: dmitry +Assigned To:
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 15 05:01:29 2024 UTC