From 26042037b619f4d40496e62eb73a22f586cce370 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Wed, 3 Mar 2021 01:23:34 +0100 Subject: [PATCH] Increase Mojang's API response timeout --- CHANGELOG.md | 1 + api/mojang/mojang.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aaebaaa..cb495c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **BREAKING**: `/cloaks/{username}` and `/textures/{username}` endpoints will no longer return a cape if there are no textures for the requested username. - All endpoints are now returns `500` status code when an error occurred during request processing. +- Increased the response timeout for Mojang's API from 3 to 10 seconds. ## [4.5.0] - 2020-05-01 ### Added diff --git a/api/mojang/mojang.go b/api/mojang/mojang.go index 224c5ea..4ddac90 100644 --- a/api/mojang/mojang.go +++ b/api/mojang/mojang.go @@ -12,7 +12,7 @@ import ( ) var HttpClient = &http.Client{ - Timeout: 3 * time.Second, + Timeout: 10 * time.Second, Transport: &http.Transport{ MaxIdleConnsPerHost: 1024, },