diff --git a/internal/sarin/client.go b/internal/sarin/client.go index a71c06e..beaf5af 100644 --- a/internal/sarin/client.go +++ b/internal/sarin/client.go @@ -60,6 +60,7 @@ func NewHostClients( WriteTimeout: timeout, ReadTimeout: timeout, MaxResponseBodySize: safeUint64ToInt(maxResponseBody), + MaxIdemponentCallAttempts: 1, DisableHeaderNamesNormalizing: true, DisablePathNormalizing: true, NoDefaultUserAgentHeader: true, @@ -83,6 +84,7 @@ func NewHostClients( WriteTimeout: timeout, ReadTimeout: timeout, MaxResponseBodySize: safeUint64ToInt(maxResponseBody), + MaxIdemponentCallAttempts: 1, DisableHeaderNamesNormalizing: true, DisablePathNormalizing: true, NoDefaultUserAgentHeader: true, diff --git a/internal/sarin/scripthttp.go b/internal/sarin/scripthttp.go index 633ddf8..285b485 100644 --- a/internal/sarin/scripthttp.go +++ b/internal/sarin/scripthttp.go @@ -59,6 +59,8 @@ func newScriptHTTPClient( DialTimeout: dialWithDeadline(dial), MaxConnsPerHost: safeUintToInt(maxConns), MaxResponseBodySize: safeUint64ToInt(maxResponseBody), + // Retries would send one script call several times and hide it from the results. + MaxIdemponentCallAttempts: 1, TLSConfig: &tls.Config{ InsecureSkipVerify: insecure, //nolint:gosec },