Remove ResponseHeaderTimeout from default http transport (#1827)
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
This commit is contained in:
@@ -80,7 +80,9 @@ test("Start New Diagnostic button exists after Diagnostic is completed", async (
|
||||
.useRole(roles.diagnostics)
|
||||
.navigateTo("http://localhost:9090/support/diagnostics")
|
||||
.click(elements.startDiagnosticButton)
|
||||
.wait(2000)
|
||||
.wait(3000)
|
||||
.expect(elements.downloadButton.exists)
|
||||
.ok()
|
||||
.expect(elements.startNewDiagnosticButton.exists)
|
||||
.ok();
|
||||
});
|
||||
@@ -90,6 +92,8 @@ test("Start New Diagnostic button is clickable after Diagnostic is completed", a
|
||||
.useRole(roles.diagnostics)
|
||||
.navigateTo("http://localhost:9090/support/diagnostics")
|
||||
.click(elements.startDiagnosticButton)
|
||||
.wait(2000)
|
||||
.wait(3000)
|
||||
.expect(elements.downloadButton.exists)
|
||||
.ok()
|
||||
.click(elements.startNewDiagnosticButton);
|
||||
});
|
||||
|
||||
@@ -32,15 +32,14 @@ func prepareSTSClientTransport(insecure bool) *http.Transport {
|
||||
DefaultTransport := &http.Transport{
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
DialContext: (&net.Dialer{
|
||||
Timeout: 5 * time.Second,
|
||||
Timeout: 10 * time.Second,
|
||||
KeepAlive: 15 * time.Second,
|
||||
}).DialContext,
|
||||
MaxIdleConns: 1024,
|
||||
MaxIdleConnsPerHost: 1024,
|
||||
ResponseHeaderTimeout: 60 * time.Second,
|
||||
IdleConnTimeout: 60 * time.Second,
|
||||
IdleConnTimeout: 90 * time.Second,
|
||||
TLSHandshakeTimeout: 10 * time.Second,
|
||||
ExpectContinueTimeout: 1 * time.Second,
|
||||
ExpectContinueTimeout: 10 * time.Second,
|
||||
DisableCompression: true,
|
||||
TLSClientConfig: &tls.Config{
|
||||
// Can't use SSLv3 because of POODLE and BEAST
|
||||
|
||||
Reference in New Issue
Block a user