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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
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)

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Apr 19 18:01:28 2024 UTC