Skip to content

Override timeout values at a route level #2195

@selfcontained

Description

@selfcontained

Not an issue, but a feature request. It would be convenient to be able to specify/override timeout values that you can currently set at the server level (timeout.server and timeout.client) when registering a route. We've run into cases where a specific route needs more time for slow upstream dependencies, but we'd rather not increase the timeout across the whole server. Maybe setting it in the config.timeout property in the route options.

server.route({
  ...
  config: {
    timeout: {
      server: 4500
  }
});

Metadata

Metadata

Assignees

Labels

featureNew functionality or improvement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions