We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Use gateway server.AddRoute(), The limit(MaxConns) of this route does not take effect.
To Reproduce
gw := gateway.MustNewServer(c.Gateway) // gw add api routes handler.RegisterHandlers(gw.Server, ctx) gw.Server.AddRoutes( []rest.Route{ { Method: http.MethodGet, Path: "/api/v1.0/health", Handler: HealthHandler(serverCtx), }, }, )
# MaxConns=100 # 测试 gateway addroute 的路由 hey -z 1s -c 120 -q 1 'http://localhost:8001/api/v1.0/health' # 测试 api 文件 生成的 handler 注册到 gw server 后的路由
Status code distribution both: [200] 120 responses
But origin gateway route take effect
Status code distribution: [200] 100 responses [503] 20 responses
Expected behavior expect same responses. All take effect
Environments (please complete the following information):
The text was updated successfully, but these errors were encountered:
@kevwan
Sorry, something went wrong.
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
code example repo: https://github.com/jaronnie/jzero/blob/main/daemon/daemon.go
No branches or pull requests
Describe the bug
Use gateway server.AddRoute(), The limit(MaxConns) of this route does not take effect.
To Reproduce
But origin gateway route take effect
Expected behavior
expect same responses. All take effect
Environments (please complete the following information):
The text was updated successfully, but these errors were encountered: