slow_close: Delay TCP socket closure

Description Usage Arguments

View source: R/toxics.R

Description

Delay the TCP socket from closing until delay has elapsed.

Usage

1
slow_close(delay, direction = NULL, probability = NULL, name = NULL)

Arguments

delay

time in milliseconds

direction

The direction that the toxic should apply to; either "upstream" or "downstream". The default (as NULL) will be interepreted by the toxiproxy server as "downstream".

probability

The probability of a toxic being applied, between 0 and 1 (1 corresponding to a 100% of the toxic being applied). The default (as NULL) will be interpreted as the toxiproxy server as always applying the toxic. Note that this is the chance of the toxc being applied at the point where add is called; if applied the toxic will affect every transmission.

name

An optional name for the toxic


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