struct context maybe cause memory leak? #46
Labels
No Label
bug
doc
duplicate
enhancement
help wanted
invalid
question
testing
wait_for_investigate
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: lunny/tango#46
Loading…
Reference in New Issue
Block a user
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?
Author: @u0x01
memory leak in this case:
see more: https://github.com/gorilla/sessions
see more: https://pathbox.github.io/2017/05/27/find-the-reason-memory-leak/
Author: @lunny
Could you give more testing details?
遇到类似的问题,http post上传大文件后,出现memory leak的问题;
Have you close the
ctx.Body
after used it?@lunny 你指的是“defer ctx.Req().Body.Close()”吗?
Yes
尝试过,不过现象依旧。
I will take a look at this recently.
Thanks a million!
using tango version v0.6.1
coredump:
since I delete t.Use(debug.Debug()), It seems to solved the problem.
OK. This is affected by middleware
debug.Debug
which should not be enabled on production mode.