hotfix(publicip): increase client timeouts from 5s to 15s

This commit is contained in:
Quentin McGaw
2026-03-10 12:26:40 +00:00
parent 853f4601a5
commit 93999062e4
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ func (c *cloudflare) FetchInfo(ctx context.Context, ip netip.Addr) (
) {
// Define a timeout since the default client has a large timeout and we don't
// want to wait too long.
const timeout = 5 * time.Second
const timeout = 15 * time.Second
ctx, cancel := context.WithTimeout(ctx, timeout)
defer cancel()
+1 -1
View File
@@ -47,7 +47,7 @@ func (e *echoip) FetchInfo(ctx context.Context, ip netip.Addr) (
) {
// Define a timeout since the default client has a large timeout and we don't
// want to wait too long.
const timeout = 5 * time.Second
const timeout = 15 * time.Second
ctx, cancel := context.WithTimeout(ctx, timeout)
defer cancel()
+1 -1
View File
@@ -47,7 +47,7 @@ func (i *ip2Location) FetchInfo(ctx context.Context, ip netip.Addr) (
) {
// Define a timeout since the default client has a large timeout and we don't
// want to wait too long.
const timeout = 5 * time.Second
const timeout = 15 * time.Second
ctx, cancel := context.WithTimeout(ctx, timeout)
defer cancel()
+1 -1
View File
@@ -45,7 +45,7 @@ func (i *ipInfo) FetchInfo(ctx context.Context, ip netip.Addr) (
) {
// Define a timeout since the default client has a large timeout and we don't
// want to wait too long.
const timeout = 5 * time.Second
const timeout = 15 * time.Second
ctx, cancel := context.WithTimeout(ctx, timeout)
defer cancel()
+2 -2
View File
@@ -30,7 +30,7 @@ var errHTTPStatusCode = errors.New("bad response HTTP status code")
func getGithubReleases(ctx context.Context, client *http.Client) (releases []githubRelease, err error) {
// Define a timeout since the default client has a large timeout and we don't
// want to wait too long.
const timeout = 5 * time.Second
const timeout = 15 * time.Second
ctx, cancel := context.WithTimeout(ctx, timeout)
defer cancel()
@@ -61,7 +61,7 @@ func getGithubReleases(ctx context.Context, client *http.Client) (releases []git
func getGithubCommits(ctx context.Context, client *http.Client) (commits []githubCommit, err error) {
// Define a timeout since the default client has a large timeout and we don't
// want to wait too long.
const timeout = 5 * time.Second
const timeout = 15 * time.Second
ctx, cancel := context.WithTimeout(ctx, timeout)
defer cancel()