php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #41534 SoapClient over HTTPS fails to reestablish connection
Submitted: 2007-05-29 22:17 UTC Modified: 2008-11-28 14:23 UTC
Votes:5
Avg. Score:5.0 ± 0.0
Reproduced:5 of 5 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (20.0%)
From: vladimir3 at gmail dot com Assigned: dmitry (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 5.2.2 OS: Fedore Core release 3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
48 + 3 = ?
Subscribe to this entry?

 
 [2007-05-29 22:17 UTC] vladimir3 at gmail dot com
Description:
------------
In my code i create SoapClient object and then re-use the same object.
That is, my code makes a couple of soap calls  over HTTPS every 60 seconds or so. 
The first call always fails with "Error Fetching http headers" while second one goes through.
I ran tcpdump and noticed that remote server sends FIN after about 58seconds. But SoapClient fails to reestablish it, instead it tries to send more data and gets a RST (reset) from the server. 

The only way to get around this problem is to re-create an object. I am wondering if SoapClient can be fixed so that it re-establishes SSL connections if connection no longer exists. Or can you expose a method which will allow me to check if connection is still alive.



Expected result:
----------------
I expect SoapClient to reestablish connection if current ssl connection is dead


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-29 23:24 UTC] vladimir3 at gmail dot com
By the way, I've tried setting user_agent in SoapClient contractor but that does not help.
 [2008-11-28 14:23 UTC] dmitry@php.net
Fixed in CVS HEAD and HPP_5_3 (not in PHP_5_2).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:28 2024 UTC