Skip to content

Expose server_connect_timeout and server_timeout settings - #1015

Open
Fryguy wants to merge 1 commit into
libgit2:masterfrom
Fryguy:expose-server-timeout-settings
Open

Fryguy wants to merge 1 commit into
libgit2:masterfrom
Fryguy:expose-server-timeout-settings

Conversation

@Fryguy

@Fryguy Fryguy commented Oct 5, 2026

Copy link
Copy Markdown

Wire GIT_OPT_SET/GET_SERVER_CONNECT_TIMEOUT and
GIT_OPT_SET/GET_SERVER_TIMEOUT through Rugged::Settings, following the existing pattern for mwindow_size.

  Rugged::Settings["server_connect_timeout"] = 30_000
  Rugged::Settings["server_timeout"]         = 30_000

Both options were added to libgit2 in 1.7.0.

Wire GIT_OPT_SET/GET_SERVER_CONNECT_TIMEOUT and
GIT_OPT_SET/GET_SERVER_TIMEOUT through Rugged::Settings,
following the existing pattern for mwindow_size.

  Rugged::Settings["server_connect_timeout"] = 30_000
  Rugged::Settings["server_timeout"]         = 30_000

Both options were added to libgit2 in 1.7.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant