Skip to content

Commit

Permalink
Default socket timeout to none if not provided, instead of setting it…
Browse files Browse the repository at this point in the history
… to a minute.
  • Loading branch information
Sichan Yoo committed Jun 5, 2024
1 parent b5c8100 commit 83ad11a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class HttpClientConfiguration {
/// Sets maximum time to wait between two data packets.
/// Used to close stale connections that have no activity.
///
/// Defaults to 60 seconds if no value is provided.
/// Defaults to none if no value is provided.
public var socketTimeout: TimeInterval

/// HTTP headers to be submitted with every HTTP request.
Expand Down Expand Up @@ -55,7 +55,7 @@ public class HttpClientConfiguration {
/// - tlsConfiguration: Optional custom TLS configuration for HTTPS requests. If `nil`, defaults to a standard configuration.
public init(
connectTimeout: TimeInterval? = nil,
socketTimeout: TimeInterval = 60.0,
socketTimeout: TimeInterval = 0.0,
protocolType: URIScheme = .https,
defaultHeaders: Headers = Headers(),
tlsConfiguration: (any TLSConfiguration)? = nil
Expand Down

0 comments on commit 83ad11a

Please sign in to comment.