Latency plugin maxes out at 10 seconds #1466
Closed
rcrowley-camp
started this conversation in
General
Replies: 1 comment 4 replies
-
|
We don't set a limit on the plugin for dev-proxy/DevProxy.Plugins/Behavior/LatencyPlugin.cs Lines 12 to 16 in bb09f96 The dev-proxy/DevProxy.Plugins/Behavior/LatencyPlugin.cs Lines 47 to 49 in bb09f96 The below config allowed me to delay all requests up to 20 seconds. {
"$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.3.0/rc.schema.json",
"plugins": [
{
"name": "LatencyPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
"configSection": "latencyPlugin"
}
],
"urlsToWatch": [
"https://*"
],
"latencyPlugin": {
"minMs": 0,
"maxMs": 20000
}
}I could see in the output that requests were delayed longer than 10 seconds. It looks like we have included the max limit in docs incorrectly, I'll raise a PR to remove the limit from docs. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Why is there such a low max delay in the latency plugin? I would like to observe a timeout in my app but it will never happen within 10 seconds.
Beta Was this translation helpful? Give feedback.
All reactions