Hi,
I have an application that is used to connect ot a service once a week for a 1 hour session. This session has many requirements, one of which is that we only have one open tcp connection at a time.
Out of the 30 or so sessions we've completed we've had 3 sessions where there were multiple tcp connections open during the 1 hour.
I am wondering if there is a method in php which will return the connections state, I have considered using netstat and looking for the ip of the server we connect to and then determin by that status whether its okay to proceed or we should wait. The problem with this is we have plans to purchase more connections in the future and that would result in only 1 connection being passed at a time.
We are using Zend_Http_Client from the zend framework and have tried the following:
unset the client and adapter object explicitly call the adapters close function after the clients request function the last time I did both unset and close the adapter
All the best,
Jason