-
Notifications
You must be signed in to change notification settings - Fork 393
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
Support global opts related to server timeouts #1052
Support global opts related to server timeouts #1052
Conversation
8c8ccf7
to
006324a
Compare
006324a
to
276d0ac
Compare
src/opts.rs
Outdated
raw::GIT_OPT_GET_SERVER_CONNECT_TIMEOUT as libc::c_int, | ||
&mut server_connect_timeout | ||
)); | ||
println!("result = {}", server_connect_timeout); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like maybe a stray debug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad 🤦, thanks !
@mzottola It looks like this has some merge conflicts, can you rebase this? |
49fdf11
to
e17e77c
Compare
@ehuss Understood for next time 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Hello,
We would like to apply some timeouts during git operations i.e git clone
The libgit2 provides 2 global options for that:
GIT_OPT_SET_SERVER_CONNECT_TIMEOUT
GIT_OPT_SET_SERVER_TIMEOUT
The purpose of this PR is to add the support for those options (along with their getters)
The link to libgit2 details: https://github.com/libgit2/libgit2/blob/main/include/git2/common.h#L508C38-L524