Open huanyk opened 4 months ago
I encountered an Out of Memory (OOM) error when using the response as a receiver while attempting to download a 6GB file. Upon investigation, I discovered that Feign doesn't seem to support downloading large files as inputstream.
final boolean shouldDisconnectResponseBody = response.body() != null && response.body().length() != null && response.body().length() <= MAX_RESPONSE_BUFFER_SIZE; if (!shouldDisconnectResponseBody) { return response; }
I encountered an Out of Memory (OOM) error when using the response as a receiver while attempting to download a 6GB file. Upon investigation, I discovered that Feign doesn't seem to support downloading large files as inputstream.