-
Notifications
You must be signed in to change notification settings - Fork 579
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
feat!: change default dump maxSize/limit to infinity #3788
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the response is too big it can cause significant delay before the response is dumped. IMHO it's better to just close the connection in those cases.
I agree, but then why do we have a Calling |
We have it so that if a user aborts a request with a small response we consume it and re-use the connection rather than killing it and starting a new one for the next request.
I don't understand? If the limit is reached then dump will kill the connection. |
Ah I misunderstood this. Then we can close this. |
To be clear, if the connection is killed then there is no risk of memory leak or process crash? |
This relates to...
Rationale
I think
dump()
should be able to dump the entire response body, not limited to a max size, you often don't know how big the response body will be.Changes
N/A
Features
N/A
Bug Fixes
N/A
Breaking Changes and Deprecations
1048576
(1024 * 1024) tonull
(Infinity)131072
(128 * 1024) tonull
(Infinity)Status