resty icon indicating copy to clipboard operation
resty copied to clipboard

The SetContentLength(boo) method may cause an out-of-memory issue when uploading large files, such as 5GB.

Open mail2fish opened this issue 1 year ago • 0 comments

The SetContentLength method reads the entire content of the request body reader into memory to calculate the content length. This can potentially cause an out-of-memory issue. Setting the Content-Length header manually also seems ineffective. Is there any solution to this problem?

The issue is occurring in version 2.10.

mail2fish avatar Nov 27 '23 11:11 mail2fish