mirror of
https://github.com/tribufu/node-gamedig
synced 2026-06-01 09:42:41 +00:00
fix(core/http): remove got internal retry (#690)
* fix(core/http): remove got internal retry * feat(protocol/brokeprotocolmaster): remove repeated default options in http request * docs: add changelog line * docs: credit contributor for the bug find
This commit is contained in:
parent
6821e664b0
commit
e24e9d0a9e
3 changed files with 5 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
## To Be Released...
|
## To Be Released...
|
||||||
## 5.X.Y
|
## 5.X.Y
|
||||||
|
* Fix: HTTP requests would end up making more retries than needed due to got's internal retry mechanism (#690, thanks @RattleSN4K3)
|
||||||
|
|
||||||
## 5.3.0
|
## 5.3.0
|
||||||
* Docs: Arma Reforger query setup note (#670, thanks @xCausxn)
|
* Docs: Arma Reforger query setup note (#670, thanks @xCausxn)
|
||||||
|
|
|
||||||
|
|
@ -128,8 +128,7 @@ export default class brokeprotocolmaster extends Core {
|
||||||
try {
|
try {
|
||||||
await this.request({
|
await this.request({
|
||||||
url: this.backendApiUriCheck,
|
url: this.backendApiUriCheck,
|
||||||
method: 'HEAD',
|
method: 'HEAD'
|
||||||
retry: { limit: 0 } // TODO: #650 remove this
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
|
|
||||||
|
|
@ -316,6 +316,9 @@ export default class Core extends EventEmitter {
|
||||||
...params,
|
...params,
|
||||||
timeout: {
|
timeout: {
|
||||||
request: this.options.socketTimeout
|
request: this.options.socketTimeout
|
||||||
|
},
|
||||||
|
retry: {
|
||||||
|
limit: 0
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.logger.debug(log => {
|
this.logger.debug(log => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue