HttpClient - connection failed (ubidots)

I am using this library and stated my problem on it’s thread as well as another thread. We have traced it back to this library for sure but get certain amount of intermittency.

I also have the client failing and timing out. It starts JUST failing then after ? cycles it does function but times out.
In my example it is talking to a web service which is constantly online. The failing stops between 1-5 cycles no link found for cycle number. Once it begins timing out the web service is working perfectly and the response is seen by the client it just seems to hold the connection open for no reason.

I have not tested my idea yet but I am wondering if it is line 190 in the library.
Instead of available may need to be connected?
Thats my plan anyway.