Closed sudofox closed 6 years ago
Hey!
Wondering if you've been able to reproduce the issue? I've done some poking around myself; while I haven't had much time yet, I'm thinking about stripping down your class into the core components extending the Curl class (AppCurl) and the _call function to see what may be causing the difference.
I do see you calling resetConnection each time _call() runs. Perhaps the method type or extra headers is causing something different to occur?
Would be great to see this resolved.
Hey, I think this issue is prematurely closed... I have not merged anything in yet, and I thought it would only close after I merged.
I did find the problem. The private calls all make use of the GDAX's timer api which uses a separate Curl connection. I was not closing this connection. It now keeps one connection open for all Auth calls.
Thank you very much for the well documented issue. I have created a test case with your examples. I should be submitting that soon also.
Thanks again for your feedback. Everything is updated. The latest version is 1.2.0.
Thank you very much! Very much appreciated, and I'm glad to help.
I was running into issues with placing orders and other things and realized that I'm ending up with many, many open connections to GDAX -- the curl handle itself is staying open after private requests. This only seems to occur for private (requiring API auth) requests.
Oddly, we are left with 2 open connections after the first private API call.
Over time, the number of open connections to GDAX increase manyfold -- I've had it hit near a thousand -- before things stop working due to having too many open connections.