mirror of
https://github.com/snail007/goproxy.git
synced 2026-04-27 00:15:51 +03:00
[GH-ISSUE #479] API认证接口响应的参数无效? #383
Labels
No labels
TODO
bug
duplicate
enhancement
good first issue
help wanted
helpful
invalid
need-confirm
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/goproxy#383
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @waloyn on GitHub (Apr 26, 2022).
Original GitHub issue: https://github.com/snail007/goproxy/issues/479
Expected Behavior
预期行为:需要按照接口响应参数进限制。
Current Behavior
当前行为:并未按照接口参数进行限制,而且按默认行为进行限制,比如用户连接数,默认为20
Possible Solution
Steps to Reproduce
Context (Environment)
Detailed Description
Possible Implementation
按照文档解释:
不设置该头部信息或者设置为0,日志均显示max:20/s,如图所示
日志:

接口响应:

@waloyn commented on GitHub (Apr 26, 2022):
超过连接数后,日志限制一直在kill,因此用户反应不稳定。

@snail007 commented on GitHub (Apr 26, 2022):
理解错误,你把--maxconns-rate和ipconns搞混了,看手册吧,完全是两个东西,一个是qps,一个是最大值。
@waloyn commented on GitHub (Apr 27, 2022):
还有就是control控制接口,运行了几天,一次请求都没发起过是啥情况,文档上不是说默认30秒POST一次么?
@snail007 commented on GitHub (Apr 27, 2022):
仔细理解,那是上报那一刻有在线的连接才上报,手册写的清清楚楚。
@waloyn commented on GitHub (Apr 27, 2022):
还有就响应截图上面,userrate限速是3Mb,实际可以跑到10+MB
@waloyn commented on GitHub (Apr 27, 2022):
日志清一色是accept4: too many open files是啥问题?看了系统限制和proxy-admin打开的数量,都没有超标啊?

@snail007 commented on GitHub (Apr 27, 2022):
这里不是技术解答区,手册有的问题不再回答,你这个问题百度一大堆,系统配置问题,不是软件问题。