Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/en/latest/plugins/limit-conn.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be best to provide a complete curl example.

{
"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.
Loading