Bug #53776 [Asn->Opn]: soap module does not allow to use underlying persistent connections

From: Date: Tue, 24 Oct 2017 07:55:55 +0000
Subject: Bug #53776 [Asn->Opn]: soap module does not allow to use underlying persistent connections
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212183@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=53776&edit=1

 ID:                 53776
 Updated by:         kalle@php.net
 Reported by:        christian dot boitel at gmail dot com
 Summary:            soap module does not allow to use underlying
                     persistent connections
-Status:             Assigned
+Status:             Open
 Type:               Bug
 Package:            SOAP related
 Operating System:   Linux
 PHP Version:        5.3.5
-Assigned To:        dmitry
+Assigned To:        
 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 https://bugs.php.net/bug.php?id=53776&edit=1


Thread (3 messages)

« previous php.bugs (#212183) next »