Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpClient] addedextra.trace_content option toTraceableHttpClient to prevent it from keeping the content in memory#38587

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:5.xfromnicolas-grekas:hc-dont-trace-content
Oct 16, 2020

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?5.2
Bug fix?no
New feature?yes
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

TraceableHttpClient leaks memory by definition. But sometimes, this leak is to important, especially when keeping the response content in memory.

This PR adds a newtrace_content option underextra so that consumers can tell the client to not trace the content. This will be ignored whenTraceableHttpClient is not in use.

…nt` to prevent it from keeping the content in memory
@stof
Copy link
Member

should we have an option in the TraceableHttpClient constructor to control the default value rather than harcoding it totrue ?

@nicolas-grekas
Copy link
MemberAuthor

We could have an option in the constructor, and a corresponding config option.
That's separate from this proposal of course.

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commit72be305 intosymfony:5.xOct 16, 2020
@nicolas-grekasnicolas-grekas deleted the hc-dont-trace-content branchOctober 20, 2020 11:30
Nyholm added a commit that referenced this pull requestOct 22, 2020
… (nicolas-grekas)This PR was merged into the 5.x branch.Discussion----------[HttpClient] never trace content of event-stream responses| Q             | A| ------------- | ---| Branch?       | 5.2| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       | -| License       | MIT| Doc PR        | -Let's leverage#38587 in `EventSourceHttpClient`Commits-------e4c0262 [HttpClient] never trace content of event-stream responses
@fabpotfabpot mentioned this pull requestOct 28, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@jderussejderussejderusse approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

5.2

Development

Successfully merging this pull request may close these issues.

5 participants

@nicolas-grekas@stof@fabpot@jderusse@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp