avinal commented on code in PR #7030: URL: https://github.com/apache/apisix/pull/7030#discussion_r871813072
########## docs/en/latest/plugins/limit-conn.md: ########## @@ -93,17 +99,19 @@ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f13 }' ``` -You also can complete the above operation through the web interface, first add a route, then add limit-conn plugin: - +<!--  --> -## Test Plugin +## Example usage -The parameters of the plugin enabled above indicate that only one concurrent request is allowed. When more than one concurrent request is received, will return `503` directly. +The example above configures the Plugin to only allow one concurrent request. When more that one request is received, the Plugin will respond with a 503 status code: ```shell curl -i http://127.0.0.1:9080/index.html?sleep=20 & curl -i http://127.0.0.1:9080/index.html?sleep=20 +``` + +```shell Review Comment: I agree with Zhiyuan, `shell` is not recognized by the renderer used by the Docusauraus, although it is supported in GitHub. Refer https://github.com/FormidableLabs/prism-react-renderer/blob/master/src/vendor/prism/includeLangs.js#L8 and https://github.com/github/linguist/blob/master/lib/linguist/languages.yml#L5837. Use `bash` instead. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
