toxic_set: Create a set of toxics

Description Usage Arguments Details Examples

View source: R/toxic_set.R

Description

Create a set of toxics to apply to a connection.

Usage

1
toxic_set(..., toxics = list(...))

Arguments

...

zero or more toxics to group together as a set

toxics

a list of toxics, instead of passing ...

Details

The possible toxics are latency, bandwidth, slow_close, timeout, slicer and limit_data.

Examples

1
2
3
4
toxic_set(timeout(1000))
# Simulate Australia:
toxic_set(bandwidth(10, "upstream"), latency(100, 0, "upstream"),
          bandwidth(50, "downstream"), latency(100, 0, "downstream"))

richfitz/toxiproxyr documentation built on May 25, 2017, 3:10 a.m.