Closed
Conversation
One important caveat was ignored by piping request stream to busboy stream. This commit aknowledges that caveat. More information on: https://nodejs.org/api/stream.html#readablepipedestination-options
As mentioned by @Gerard-Szulc we use `removeListener` in node instead of `removeEventListener`
LinusU
reviewed
Oct 30, 2022
| var uploadedFiles = [] | ||
|
|
||
| function requestError(error) { | ||
| if(!busboy) return |
Member
There was a problem hiding this comment.
busboy should always be defined here?
Suggested change
| if(!busboy) return |
LinusU
reviewed
Oct 30, 2022
| var pendingWrites = new Counter() | ||
| var uploadedFiles = [] | ||
|
|
||
| function requestError(error) { |
Member
There was a problem hiding this comment.
Suggested change
| function requestError(error) { | |
| function requestError (error) { |
Member
|
Sorry for the late reply, this looks good 👍 Only have one question, will the |
|
Bump |
|
@LinusU Merger? |
|
@LinusU Can you please merge this? Servers that use |
|
Bump, can we merge this please? |
didiercolens
added a commit
to didiercolens/bdb-multer
that referenced
this pull request
Jan 12, 2024
Member
|
resolved via 2c8505f thanks everyone! |
This was referenced May 20, 2025
Merged
This was referenced May 28, 2025
This was referenced Oct 15, 2025
This was referenced Oct 15, 2025
🔐 Security Vulnerability Scan - 2025-10-15 - 4 vulnerabilities found
denukedissanayake/ai-bug-fix#87
Closed
🔐 Security Vulnerability Scan - 2025-10-15 - 4 vulnerabilities found
denukedissanayake/ai-bug-fix#88
Closed
🔐 Security Vulnerability Scan - 2025-10-15 - 4 vulnerabilities found
denukedissanayake/ai-bug-fix#90
Closed
🔐 Security Vulnerability Scan - 2025-10-15 - 4 vulnerabilities found
denukedissanayake/ai-bug-fix#91
Closed
🔐 Security Vulnerability Scan - 2025-10-15 - 4 vulnerabilities found
denukedissanayake/ai-bug-fix#92
Open
🔐 Security Vulnerability Scan - 2025-10-15 - 4 vulnerabilities found
denukedissanayake/ai-bug-fix#93
Open
🔐 Security Vulnerability Scan - 2025-10-15 - 4 vulnerabilities found
denukedissanayake/ai-bug-fix#94
Open
🔐 Security Vulnerability Scan - 2025-10-15 - 4 vulnerabilities found
denukedissanayake/ai-bug-fix#95
Open
🔐 Security Vulnerability Scan - 2025-10-15 - 4 vulnerabilities found
denukedissanayake/ai-bug-fix#96
Open
Open
5 tasks
Open
5 tasks
Open
5 tasks
This was referenced Oct 15, 2025
Security Vulnerability Scan - 2025-10-15 - 20 vulnerabilities found
denukedissanayake/ai-bug-fix#106
Open
Security Vulnerability Scan - 2025-10-16 - 20 vulnerabilities found
denukedissanayake/ai-bug-fix#109
Open
Security Vulnerability Scan - 2025-10-16 - 20 vulnerabilities found
denukedissanayake/ai-bug-fix#111
Open
Security Vulnerability Scan - 2025-10-16 - 20 vulnerabilities found
denukedissanayake/ai-bug-fix#113
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One important caveat was ignored by piping request stream to busboy stream. This commit aknowledges that caveat by closing busboy stream when request stream encounters an error. More information about this caveat can be found on https://nodejs.org/api/stream.html#readablepipedestination-options.
This PR also fixes multiple issues that are caused by this caveat some are listed blow.
Some PR's (that may introduce breaking changes) are closed by this PR also (without breaking changes) and some are listed blow.
PLEASE MERGE THIS BECAUSE IT'S INSANE ANNOYING HAVING TO RELAUNCH THE SERVER EVERY DAY BECAUSE THOUSANDS OF OPEN STREAMS ARE NOT CLOSED (MEMORY LEAKS)
@LinusU here is a not breaking change that will fix all the above.