Skip to content

Commit

Permalink
Timeout setup in data moved s3 client
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Jul 19, 2024
1 parent e19a1e5 commit 5e542b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/replication/tasks/CopyLocationTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const BackbeatTask = require('../../../lib/tasks/BackbeatTask');
const { LifecycleMetrics } = require('../../lifecycle/LifecycleMetrics');
const ReplicationMetric = require('../ReplicationMetric');
const ReplicationMetrics = require('../ReplicationMetrics');
const { attachReqUids } = require('../../../lib/clients/utils');
const { attachReqUids, TIMEOUT_MS } = require('../../../lib/clients/utils');
const { getAccountCredentials } =
require('../../../lib/credentials/AccountCredentials');
const RoleCredentials =
Expand Down Expand Up @@ -77,7 +77,7 @@ class CopyLocationTask extends BackbeatTask {
endpoint: `${transport}://${s3.host}:${s3.port}`,
credentials: s3Credentials,
sslEnabled: transport === 'https',
httpOptions: { agent: this.sourceHTTPAgent, timeout: 0 },
httpOptions: { agent: this.sourceHTTPAgent, timeout: TIMEOUT_MS },
maxRetries: 0,
});
this.backbeatMetadataProxy = new BackbeatMetadataProxy(
Expand Down

0 comments on commit 5e542b8

Please sign in to comment.