Skip to content

Allow different timeouts per request. #17

@3rd-Eden

Description

@3rd-Eden

Currently it's only possible to set a timeout option for the whole client instance and it needs to be really high as deployments and start operation can take various of minutes. But other API calls such as a simple account details call will also be under that same timeout and having a timeout of 8+ minutes will be to damn high for it. As you want to be able to timeout those requests in timely manner.

Suggested API's

// if there are 2 objects in the arguments assume that the last one is options for the request
client.command('username', data, options, callback)

or something signature breaking

client.timeout(5000).command('username', data, callback)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions