We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a3d5367 + 6564fed commit 7480c82Copy full SHA for 7480c82
test/e2e/service.go
@@ -1091,12 +1091,14 @@ func testNotReachable(ip string, port int) {
1091
1092
// Does an HTTP GET, but does not reuse TCP connections
1093
// This masks problems where the iptables rule has changed, but we don't see it
1094
+// This is intended for relatively quick requests (status checks), so we set a short (5 seconds) timeout
1095
func httpGetNoConnectionPool(url string) (*http.Response, error) {
1096
tr := &http.Transport{
1097
DisableKeepAlives: true,
1098
}
1099
client := &http.Client{
1100
Transport: tr,
1101
+ Timeout: 5 * time.Second,
1102
1103
1104
return client.Get(url)
0 commit comments