go to bug id or search bugs for
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.
I expect SoapClient to reestablish connection if current ssl connection is dead
Add a Patch
Add a Pull Request
By the way, I've tried setting user_agent in SoapClient contractor but that does not help.
Fixed in CVS HEAD and HPP_5_3 (not in PHP_5_2).