Skip to content

Commit 0a8dddb

Browse files
authored
Fixes default timeout documentation comment (#317)
Motivation: Right now documentation states that timrout defaults to no timeout, this is no actually true, if timeout is not set NIO bootstrap defaults to 10 seconds connect timeout. Modifications: Updates documentation comment. Result: Closes #118
1 parent 236b1de commit 0a8dddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AsyncHTTPClient/HTTPClient.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ public class HTTPClient {
639639
/// - `307: Temporary Redirect`
640640
/// - `308: Permanent Redirect`
641641
public var redirectConfiguration: RedirectConfiguration
642-
/// Default client timeout, defaults to no timeouts.
642+
/// Default client timeout, defaults to no `read` timeout and 10 seconds `connect` timeout.
643643
public var timeout: Timeout
644644
/// Connection pool configuration.
645645
public var connectionPool: ConnectionPool

0 commit comments

Comments
 (0)