-
Notifications
You must be signed in to change notification settings - Fork 392
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
Too many open files issue from libgit2 #626
Comments
Updates of the libgit2 module should be fine! Feel free to send a PR which updates it to the latest master branch of libgit2. |
@WaffleLapkin libgit2-sys-0.12.13+1.0.1 already included libgit2/libgit2#5396. Which version are you using? Also, libgit2 was just updated in #627 (released as 0.12.14+1.1.0), you can maybe try that to see if it helps. |
@ehuss thanks for the callout! I was using |
Hm, it seems like even with Upd: I've rechecked after an hour, there are |
@WaffleLapkin are these mostly also, can you try setting the |
@WaffleLapkin Are you keeping an instance of |
Ah, that's interesting. When I used
Oh, after reading the libgit2/libgit2#5396 description, I've thought that the default is
unsafe {
dbg!(libgit2_sys::git_libgit2_opts(
libgit2_sys::GIT_OPT_SET_MWINDOW_FILE_LIMIT as _,
128
))
}; It's awful, but it works. I wonder why this functionality isn't provided by the Anyway, thanks @lhchavez! |
@initcrash I'm working with git a lot, so while I thought about this solution, I didn't want to use it. |
oh rats. that was my original intention, but at some point during the review process that default was pedalled back and i completely forgot to update the message D: but glad that things worked out one way or the other! |
My program, that uses
git2
crushes ~every week because of leaking descriptors. This is probably caused by libgit2/libgit2#2758, which was fixed a while ago.Is it possible to fix the rust binding too? (If I understand right, this requires an update of the
libgit2
dependency)The text was updated successfully, but these errors were encountered: