Skip to content

Ability to specify timeouts #64

@robingustafsson

Description

@robingustafsson

Being able to specify TCP connection and HTTP send/receive timeouts is important for simulating different types of clients and conditions.

I think we should add both global and local timeout options. Global options could be specified either in the "options" or using an API like options.set("tcp.connection_timeout", "100ms").

Local options could be specified at the HTTP request call site, something like http.get("http://example.com/", null, { "http.rw_timeout": "1s" }).

The cascading of the options would be options <- options API <- http API param

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions