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)
|
.useRole(roles.diagnostics)
|
||||||
.navigateTo("http://localhost:9090/support/diagnostics")
|
.navigateTo("http://localhost:9090/support/diagnostics")
|
||||||
.click(elements.startDiagnosticButton)
|
.click(elements.startDiagnosticButton)
|
||||||
.wait(2000)
|
.wait(3000)
|
||||||
|
.expect(elements.downloadButton.exists)
|
||||||
|
.ok()
|
||||||
.expect(elements.startNewDiagnosticButton.exists)
|
.expect(elements.startNewDiagnosticButton.exists)
|
||||||
.ok();
|
.ok();
|
||||||
});
|
});
|
||||||
@@ -90,6 +92,8 @@ test("Start New Diagnostic button is clickable after Diagnostic is completed", a
|
|||||||
.useRole(roles.diagnostics)
|
.useRole(roles.diagnostics)
|
||||||
.navigateTo("http://localhost:9090/support/diagnostics")
|
.navigateTo("http://localhost:9090/support/diagnostics")
|
||||||
.click(elements.startDiagnosticButton)
|
.click(elements.startDiagnosticButton)
|
||||||
.wait(2000)
|
.wait(3000)
|
||||||
|
.expect(elements.downloadButton.exists)
|
||||||
|
.ok()
|
||||||
.click(elements.startNewDiagnosticButton);
|
.click(elements.startNewDiagnosticButton);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -32,15 +32,14 @@ func prepareSTSClientTransport(insecure bool) *http.Transport {
|
|||||||
DefaultTransport := &http.Transport{
|
DefaultTransport := &http.Transport{
|
||||||
Proxy: http.ProxyFromEnvironment,
|
Proxy: http.ProxyFromEnvironment,
|
||||||
DialContext: (&net.Dialer{
|
DialContext: (&net.Dialer{
|
||||||
Timeout: 5 * time.Second,
|
Timeout: 10 * time.Second,
|
||||||
KeepAlive: 15 * time.Second,
|
KeepAlive: 15 * time.Second,
|
||||||
}).DialContext,
|
}).DialContext,
|
||||||
MaxIdleConns: 1024,
|
MaxIdleConns: 1024,
|
||||||
MaxIdleConnsPerHost: 1024,
|
MaxIdleConnsPerHost: 1024,
|
||||||
ResponseHeaderTimeout: 60 * time.Second,
|
IdleConnTimeout: 90 * time.Second,
|
||||||
IdleConnTimeout: 60 * time.Second,
|
|
||||||
TLSHandshakeTimeout: 10 * time.Second,
|
TLSHandshakeTimeout: 10 * time.Second,
|
||||||
ExpectContinueTimeout: 1 * time.Second,
|
ExpectContinueTimeout: 10 * time.Second,
|
||||||
DisableCompression: true,
|
DisableCompression: true,
|
||||||
TLSClientConfig: &tls.Config{
|
TLSClientConfig: &tls.Config{
|
||||||
// Can't use SSLv3 because of POODLE and BEAST
|
// Can't use SSLv3 because of POODLE and BEAST
|
||||||
|
|||||||
Reference in New Issue
Block a user