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

diagnostics_channel: handle last subscriber removal by gabrielschulhof · Pull Request #48933 · nodejs/node · GitHub

/ node Public

diagnostics_channel: handle last subscriber removal - #48933

Closed
gabrielschulhof wants to merge 1 commit into
nodejs:mainfrom
gabrielschulhof:fix-diagnostics-channel-sync-unsubscribe
Closed

diagnostics_channel: handle last subscriber removal#48933
gabrielschulhof wants to merge 1 commit into
nodejs:mainfrom
gabrielschulhof:fix-diagnostics-channel-sync-unsubscribe

Conversation

Copy link
Copy Markdown
Contributor

When iterating over diagnostics channel subscribers, assume their count is zero if the list of subscribers becomes undefined, because there may be only one subscriber which may unsubscribe itself as part of its onMessage handler.

gabrielschulhof added the diagnostics_channel Issues and PRs related to diagnostics channel label Jul 26, 2023
nodejs-github-bot added the needs-ci PRs that need a full CI run. label Jul 26, 2023
gabrielschulhof force-pushed the fix-diagnostics-channel-sync-unsubscribe branch from f1ec8b4 to 7d6b3f2 Compare July 26, 2023 22:50
gabrielschulhof requested a review from Qard July 26, 2023 23:50
lpinca added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 27, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 27, 2023

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

When iterating over diagnostics channel subscribers, assume their count
is zero if the list of subscribers becomes undefined, because there may
be only one subscriber which may unsubscribe itself as part of its
onMessage handler.
gabrielschulhof force-pushed the fix-diagnostics-channel-sync-unsubscribe branch from 7d6b3f2 to c1aa103 Compare July 28, 2023 21:57

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

debadree25 added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Jul 31, 2023
gabrielschulhof added a commit that referenced this pull request Jul 31, 2023
When iterating over diagnostics channel subscribers, assume their count
is zero if the list of subscribers becomes undefined, because there may
be only one subscriber which may unsubscribe itself as part of its
onMessage handler.

Signed-off-by: Gabriel Schulhof <gabrielschulhof@gmail.com>
PR-URL: #48933
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: theanarkh <theratliter@gmail.com>

Copy link
Copy Markdown
Contributor Author

Landed in eb504c9.

gabrielschulhof deleted the fix-diagnostics-channel-sync-unsubscribe branch July 31, 2023 17:16
gabrielschulhof removed the needs-ci PRs that need a full CI run. label Jul 31, 2023

Copy link
Copy Markdown
Contributor Author

@RafaelGSS, will this go into 20.6.0?

Ceres6 pushed a commit to Ceres6/node that referenced this pull request Aug 14, 2023
When iterating over diagnostics channel subscribers, assume their count
is zero if the list of subscribers becomes undefined, because there may
be only one subscriber which may unsubscribe itself as part of its
onMessage handler.

Signed-off-by: Gabriel Schulhof <gabrielschulhof@gmail.com>
PR-URL: nodejs#48933
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: theanarkh <theratliter@gmail.com>
Ceres6 pushed a commit to Ceres6/node that referenced this pull request Aug 14, 2023
When iterating over diagnostics channel subscribers, assume their count
is zero if the list of subscribers becomes undefined, because there may
be only one subscriber which may unsubscribe itself as part of its
onMessage handler.

Signed-off-by: Gabriel Schulhof <gabrielschulhof@gmail.com>
PR-URL: nodejs#48933
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: theanarkh <theratliter@gmail.com>
UlisesGascon pushed a commit to UlisesGascon/node that referenced this pull request Aug 14, 2023
When iterating over diagnostics channel subscribers, assume their count
is zero if the list of subscribers becomes undefined, because there may
be only one subscriber which may unsubscribe itself as part of its
onMessage handler.

Signed-off-by: Gabriel Schulhof <gabrielschulhof@gmail.com>
PR-URL: nodejs#48933
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: theanarkh <theratliter@gmail.com>
RafaelGSS pushed a commit that referenced this pull request Aug 15, 2023
When iterating over diagnostics channel subscribers, assume their count
is zero if the list of subscribers becomes undefined, because there may
be only one subscriber which may unsubscribe itself as part of its
onMessage handler.

Signed-off-by: Gabriel Schulhof <gabrielschulhof@gmail.com>
PR-URL: #48933
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: theanarkh <theratliter@gmail.com>
UlisesGascon mentioned this pull request Aug 15, 2023
RafaelGSS pushed a commit to RafaelGSS/node that referenced this pull request Aug 15, 2023
When iterating over diagnostics channel subscribers, assume their count
is zero if the list of subscribers becomes undefined, because there may
be only one subscriber which may unsubscribe itself as part of its
onMessage handler.

Signed-off-by: Gabriel Schulhof <gabrielschulhof@gmail.com>
PR-URL: nodejs#48933
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: theanarkh <theratliter@gmail.com>
RafaelGSS pushed a commit that referenced this pull request Aug 17, 2023
When iterating over diagnostics channel subscribers, assume their count
is zero if the list of subscribers becomes undefined, because there may
be only one subscriber which may unsubscribe itself as part of its
onMessage handler.

Signed-off-by: Gabriel Schulhof <gabrielschulhof@gmail.com>
PR-URL: #48933
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: theanarkh <theratliter@gmail.com>
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

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. diagnostics_channel Issues and PRs related to diagnostics channel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL