-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Milestone
Description
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
martinfijal