Skip to content

Commit

Permalink
Only retry on socket errors
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieusieben committed Oct 21, 2024
1 parent 8cf4d8a commit 36f34f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/pds/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ export class AppContext {
const proxyAgent =
cfg.proxy.maxRetries > 0
? new undici.RetryAgent(proxyAgentBase, {
statusCodes: [502, 503, 504], // Do *not* include 429 here.
methods: ['GET', 'HEAD', 'POST'],
statusCodes: [], // Only retry on socket errors
methods: ['GET', 'HEAD'],
maxRetries: cfg.proxy.maxRetries,
})
: proxyAgentBase
Expand Down

0 comments on commit 36f34f3

Please sign in to comment.