6. Security

throttle

Version

The throttle feature can slow down traffic to thwart denial of service attacks.

Syntax

<throttle delay="long"
maxThreads="int"
busyDelay="long"/>
<throttle delay="long"
  maxThreads="int"
  busyDelay="long"/>

Sample

<serviceProxy port="2000">
<throttle delay="1000" maxThreads="5" busyDelay="3000"/>
<target host="www.predic8.de" />
</serviceProxy>
<serviceProxy port="2000">
  <throttle delay="1000" maxThreads="5" busyDelay="3000"/>
  <target host="www.predic8.de" />
</serviceProxy>

Attributes

NameRequiredDefaultDescriptionExamples
busyDelayfalse0If a newly incoming request exceeds maxThreads, the interceptor waits the specified number in milliseconds and retries once before aborting the request.3000
delayfalse0If non-zero, delays requests by specified number of milliseconds.1000
maxThreadsfalse0If non-zero, newly incoming request are aborted if the number of running requests has reached this limit.5

Can be used in