Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

set SSH timeout#6721

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethomson merged 3 commits intolibgit2:mainfromvafada:ssh-timeout
Feb 5, 2024
Merged

set SSH timeout#6721

ethomson merged 3 commits intolibgit2:mainfromvafada:ssh-timeout
Feb 5, 2024

Conversation

vafada
Copy link
Contributor

fixes#6708 ?

@@ -539,6 +541,10 @@ static int _git_ssh_session_create(
return -1;
}

if (git_socket_stream__connect_timeout > 0) {
libssh2_session_set_timeout(s, git_socket_stream__connect_timeout);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

We should inherit thegit_socket_stream__connect_timeout from the socket stream. So we already have connection timeouts.

I think that for this, we want to useGIT_OPT_SET_SERVER_TIMEOUT. So I think that this should begit_socket_stream__timeout instead...

vafada reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

updated PR

@vafadavafada requested a review fromethomsonJanuary 26, 2024 18:38
The connect timeout *does* apply to SSH connections (at least libssh2),so update the documentation appropriately.
@ethomson
Copy link
Member

Looks great — I added one change to the docs that is related but independent. (They stated that the connect timeout was not supported for SSH, in fact, it is.)

Thanks for the PR! 🎉

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ethomsonethomsonethomson approved these changes

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Allow set timeout for SSH connection.
2 participants
@vafada@ethomson

[8]ページ先頭

©2009-2025 Movatter.jp