-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file descriptors leak #75
Comments
I didn't try to replicate this, but I'm pretty confident it's due to the unmanaged I was finding client/connection handling tricky in that it's hard to support (in the API design) letting the user manage clients but also not force them to take on that complexity if they don't want. This particular call could be fixed pretty easily, and I'd merge that PR. But the need for a sanely managed client pool becomes more of a problem when you're trying to make the most of the async nature of this library, especially with long-running connections to the streaming endpoints. I might recommend taking a look at my fork, which I'm calling But there were a number of design conflicts that pushed So |
Thank you for taking the time to explain, and for the pointer to For now, I am memoizing the offending call, which takes care of the leak. Admittedly, this is nothing more than a kludge (but good enough for me at this point). |
Calling
make-oauth-creds
with the first supported arity, that is with app-key and app-secret only, will leave open files. The offending function isrequest-app-only-token
, with further calls toexecute-request-callbacks
andcallbacks-sync-single-default
. This smells like threads are left waiting for I/O somewhere down the stack instead of being shut down.twitter-api/src/twitter/oauth.clj
Line 50 in 070063f
The leak can be substantial when calling
make-oauth-creds
often under that arity.The text was updated successfully, but these errors were encountered: