| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Currently, writeQueueSize is never used in C++ and barely used within JS. Instead of constantly updating the value on the JS object, create a getter that will retrieve the most up-to-date value from C++. For the vast majority of cases though, create a new prop on Socket.prototype[kLastWriteQueueSize] using a Symbol. Use this to track the current write size, entirely in JS land. PR-URL: nodejs#17650
There was a problem hiding this comment.
LGTM. Looks like the conflict had to do with switching errors to be emitted from JS or something like that?
Thanks for doing this btw!
Sorry, something went wrong.
|
@apapirovski Yup, exactly that. :) No problem! |
Sorry, something went wrong.
Sorry, something went wrong.
|
It looks like this no longer lands cleanly after landing #18079 on v9.x-staging. Any chance you could rebase? Thanks! |
Sorry, something went wrong.
Currently, writeQueueSize is never used in C++ and barely used within JS. Instead of constantly updating the value on the JS object, create a getter that will retrieve the most up-to-date value from C++. For the vast majority of cases though, create a new prop on Socket.prototype[kLastWriteQueueSize] using a Symbol. Use this to track the current write size, entirely in JS land. Backport-PR-URL: #18084 PR-URL: #17650 Reviewed-By: Anna Henningsen <anna@addaleax.net>
|
Got this to land cleanly... landed in 25ce458 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
/cc @apapirovski
Only merge conflict was a trivial one in src/tty_wrap.cc
Currently, writeQueueSize is never used in C++ and barely used
within JS. Instead of constantly updating the value on the JS
object, create a getter that will retrieve the most up-to-date
value from C++.
For the vast majority of cases though, create a new prop on
Socket.prototype[kLastWriteQueueSize] using a Symbol. Use this
to track the current write size, entirely in JS land.
PR-URL: #17650