Skip to content
New issue

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

HttpServerHandler 中对静态资源请求的判断时可能导致会的内存溢出 #380

Closed
ghost opened this issue Oct 12, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 12, 2019

  • System Version (e.g. Mac Os 10.14.3): Windows 10 1903
  • Build tools (e.g. maven/gradle): maven
  • JDK Version (e.g. e.g 2.0.8-R1): JDK 8
  • Blade Version: 2.0.15.BETA

Describe the bug

框架可以直接对静态资源进行访问,并且在代码中对一次请求是否是请求静态资源做了判断,如果本次请求不是对静态资源的访问则将会把请求路径存储在一个名为 notStaticUriHashSet 中,但是这样是不是存在一个问题,如果服务长时间运行或有大量不同的请求时, notStaticUri 中存储的数据会不断的增加,是否会导致出现内存溢出的问题?

Screenshots:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant