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

Fix grpclite memory leak issue, close reader's underlying io.Reader. #2658

Open
wants to merge 1 commit into
base: dev-next
Choose a base branch
from

Conversation

talrasha007
Copy link

There's serveral issue related:
#702 #1170

When i use an outbound with grpc transport, after run Speedtest app or https://speedtest.net, memory grows very fast (usually >100MB on my Macbook). It's caused by http.response.Body is not closed when exec conn.Close(), the conn.Reader's type if bufio.Reader, common.Close will not close underlying rd.

This pr shows a way to solve the issue.

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

Successfully merging this pull request may close these issues.

1 participant