Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass keepAlive agent? #232

Closed
ryan6416 opened this issue Jul 6, 2022 · 2 comments
Closed

How to pass keepAlive agent? #232

ryan6416 opened this issue Jul 6, 2022 · 2 comments

Comments

@ryan6416
Copy link

ryan6416 commented Jul 6, 2022

Can we add support to pass a custom http agent in the config.

For example:

let customAgent = new http.Agent({keepAlive: true});

const config = {
  appName: 'your-app',
  appVersion: '1.0',
  environment: 'sandbox',
  machineName: 'your-machine-name'
  timeout: 5000 // optional, default 20 min
  customHttpAgent: customAgent
};

const creds = {
  username: '<your-username>',
  password: '<your-password>'
};

var client = new Avatax(config).withSecurity(creds);


assert.equal(config.customHttpAgent, customAgent);
@svc-developer
Copy link
Collaborator

@ryan-efendy We will make this change in our upcoming SDK release and keep you posted. Thanks for the feedback.

@svc-developer
Copy link
Collaborator

@ryan-efendy This has been released as part of 22.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants