-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stream: Correct bufferedRequestCount in writes #6761
Conversation
/cc @nodejs/streams |
new test please that will fail before the change and not after |
you can likely adapt the test from #6758 |
First of all, the "bug" is harmless as This might cause a bug if I'm generally 👍, pending a comparative benchmark analysis, as Some more considerations:
|
c133999
to
83c7a88
Compare
@sankha93 any updates on this? This would need a test. cc @italoacasas |
There hasn't been any activity here. I'm closing this. Feel free to reopen (or ping a collaborator) if I closed this in error. |
ping @mcollina ... what's the status on this? |
@jasnell It seems @sankha93 is not committed to adding a test. I'll edit his commit and include one in a new PR. I'll close this when I file the new one. |
Ping @mcollina |
@BridgeAR I'm a bit busy atm. If someone else would like to take care of this, it would be fantastic. |
I am closing this due to the long inactivity and add a good first contribution label on the bug issue. @sankha93 thanks a lot for your contribution. Your work is much appreciated nevertheless. If you would like to pursue this further, please leave a comment or open a new PR. |
Checklist
Affected core subsystem(s)
stream
Description of change
_writableState.bufferedRequestCount
now gives the correct value if the _write is asynchronous. Fixes #6758.