From aa50cca10d0d338965b0c139a45c50a55137228a Mon Sep 17 00:00:00 2001 From: ashruthg <123737923+ashruthg@users.noreply.github.com> Date: Sat, 28 Feb 2026 20:50:31 +0530 Subject: [PATCH] docs: add stream proxy example for limit-conn plugin (#4933) Add a stream proxy usage example for the limit-conn plugin documentation. Fixes #4933 --- docs/en/latest/plugins/limit-conn.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/en/latest/plugins/limit-conn.md b/docs/en/latest/plugins/limit-conn.md index 1cba1976e798..202110c0aaa1 100644 --- a/docs/en/latest/plugins/limit-conn.md +++ b/docs/en/latest/plugins/limit-conn.md @@ -425,3 +425,22 @@ Response: 429 ``` This shows the two routes configured in different APISIX instances share the same quota. + +## Use limit-conn in Stream Proxy + +The `limit-conn` plugin can also be used in stream proxy mode. + +Example configuration for stream proxy: + +```json +{ + "plugins": { + "limit-conn": { + "conn": 1, + "burst": 0, + "default_conn_delay": 0.1, + "key": "remote_addr" + } + } +} +When used in stream proxy mode, only remote_addr and server_addr can be used as the key.