-
Notifications
You must be signed in to change notification settings - Fork 579
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
fix: socket back pressure memory leak #435
Conversation
c56646a
to
a62dd2a
Compare
a62dd2a
to
3f1deb0
Compare
@mcollina I would very much like to make a release out of this as soon as possible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
go for it! |
Is |
|
Hm, I don't understand how that works at the moment unfortunately. |
@mcollina Do we know someone that knows these internals well and we could ask for a quick review in regards to |
Seems like whatever |
I think @mcollina was right here: https://github.com/nodejs/node/pull/25436/files#diff-e6ef024c3775d787c38487a6309e491dR602 Overriding [public] Stream API sounds like a mistake. |
Why does it override |
What overrides it? |
Where is that comment? |
If you click the
I'm still talking about Node.js core (lib/net.js file) 😅 Shouldn't it be: -Socket.prototype.read = function(n) {
+Socket.prototype._read = function(n) {
if (this[kBuffer] && !this.connecting && this._handle &&
!this._handle.reading) {
tryReadStart(this);
}
- return stream.Duplex.prototype.read.call(this, n);
}; |
@szmarczak Yea, that's a bit weird... does it affect us though? |
Fixes: #434