Skip to content

Commit 8f7f780

Browse files
authored
Merge pull request #69 from opsmill/wvd-20241011-change-default-connection-timeout
Change the default connection timeout to 60s
2 parents 926d8ba + fa3475b commit 8f7f780

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Changed the default connection timeout in the SDK to 60s.

infrahub_sdk/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ConfigBase(BaseSettings):
5454
pagination_size: int = Field(default=50, description="Page size for queries to the server")
5555
retry_delay: int = Field(default=5, description="Number of seconds to wait until attempting a retry.")
5656
retry_on_failure: bool = Field(default=False, description="Retry operation in case of failure")
57-
timeout: int = Field(default=10, description="Default connection timeout in seconds")
57+
timeout: int = Field(default=60, description="Default connection timeout in seconds")
5858
transport: RequesterTransport = Field(
5959
default=RequesterTransport.HTTPX, description="Set an alternate transport using a predefined option"
6060
)

0 commit comments

Comments
 (0)