Skip to content

Add timeout configuration for requests #483

Description

@colvardrm2

Support plan

  • is this issue currently blocking your project? (yes/no): no
  • is this issue affecting a production system? (yes/no): yes

Context

  • node version: 12
  • module version: 12.2.0
  • environment (e.g. node, browser, native): node
  • used with (e.g. hapi application, another framework, standalone, ...): hapi application
  • any other relevant information:

What problem are you trying to solve?

We saw an issue recently where our authentication requests (specifically the token call) timed out after 2 minutes, which ended up increasing our response times dramatically. It woul be nice to be able to configure a timeout ourselves to allow requests to fail faster, since we don't expect them to take anywhere near that long.

Do you have a new or modified API suggestion to solve the problem?

Add a timeout option to the provider options

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew functionality or improvement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions