Skip to content

Set timeout for a command #23

@amolpednekar

Description

@amolpednekar

I am running benchmark tests for multichain, and using this library to do publish stream actions. When I increase the send rate to something like 100 transactions per second ( multichainObject.publish command ), I start getting Error: connect ETIMEDOUT or Error: read ECONNRESET .

Is there a way to set a timeout for a command, or do I need to explicitly encapsulate this publish call in a setTimeout function? What is the correct approach here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions