You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start fake server. (This program serve /upload and /download (20MB) requests)
node test_fakeserver.js
Start test server and monitor memory with memory-profiler. (This program serve /record request, which it get /download and post to /upload)
mprof run node test.js
execute 20 /record requests with interval of 30 seconds
for test in $(seq 1 20); do curl -X POST localhost:7000/record; sleep 30; done
Stop test server and execute mprof plot to check memory behavior.
mprof plot
Expected behavior
I expected no memory leak even when we got the error "Request body larger than maxBodyLength limit".
I executed again the test server with option maxBodyLength: 3010241024 and I got no memory leak.
Environment
Axios Version: 0.21.0
Node.js Version: v14.15.0
OS: Arch Linux
Additional context/Screenshots
Graph when I execute to reproduce:
The text was updated successfully, but these errors were encountered:
Describe the bug
I observe a memory leak when I request a file and pipe to another request and I get the error "Request body larger than maxBodyLength limit"
To Reproduce
To reproduce the problem, I request a file of 20MB and pipe to another request.
Bellow there a sample code:
The entire test code is present at https://github.com/jose-lopes/test_axios .
Next I will describe the environment that I setup to reproduce the problem.
Expected behavior
I expected no memory leak even when we got the error "Request body larger than maxBodyLength limit".
I executed again the test server with option maxBodyLength: 3010241024 and I got no memory leak.
Environment
Additional context/Screenshots
Graph when I execute to reproduce:
The text was updated successfully, but these errors were encountered: