FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[v9.x] net,src: refactor writeQueueSize tracking by addaleax · Pull Request #18084 · nodejs/node · GitHub

/ node Public

[v9.x] net,src: refactor writeQueueSize tracking - #18084

Closed
addaleax wants to merge 1 commit into
nodejs:v9.x-stagingfrom
addaleax:backport-v9.x-17650
Closed

[v9.x] net,src: refactor writeQueueSize tracking#18084
addaleax wants to merge 1 commit into
nodejs:v9.x-stagingfrom
addaleax:backport-v9.x-17650

Conversation

Copy link
Copy Markdown
Member

/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

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
nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. v9.x labels Jan 10, 2018

apapirovski left a comment
edited
Loading

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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!

Copy link
Copy Markdown
Member Author

@apapirovski Yup, exactly that. :) No problem!

Copy link
Copy Markdown
Member Author

Copy link
Copy Markdown
Contributor

It looks like this no longer lands cleanly after landing #18079 on v9.x-staging. Any chance you could rebase? Thanks!

MylesBorins pushed a commit that referenced this pull request Feb 20, 2018
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>

Copy link
Copy Markdown
Contributor

Got this to land cleanly... landed in 25ce458

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

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL