feat!: change default dump maxSize/limit to infinity#3788
feat!: change default dump maxSize/limit to infinity#3788styfle wants to merge 2 commits intonodejs:mainfrom
Conversation
ronag
left a comment
There was a problem hiding this comment.
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