mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Connection timeout should inherit Timeout
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ func NewHTTPClient(baseURL string, config *HTTPClientConfig) *HTTPClient {
|
||||
config.Timeout = 5 * time.Second
|
||||
}
|
||||
|
||||
config.ConnectionTimeout = time.Second
|
||||
config.ConnectionTimeout = config.Timeout
|
||||
|
||||
if config.ResponseBufferSize == 0 {
|
||||
config.ResponseBufferSize = 100 * 1024 // 100kb
|
||||
|
||||
Reference in New Issue
Block a user