Skip to content
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: worker_threads start auto add port when server.address() null #108

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Jun 6, 2023

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@fengmk2 fengmk2 changed the title fix: worker_threads start auto add port when server.address() return … fix: worker_threads start auto add port when server.address() null Jun 6, 2023
@@ -123,7 +123,7 @@ function startServer(err) {
AppWorker.send({
to: 'master',
action: 'listening',
data: server.address(),
data: server.address() || { port },
Copy link
Member Author

Choose a reason for hiding this comment

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

@hyj1991 感觉这个时机不太对,会返回 null

@fengmk2 fengmk2 merged commit 62d6d0b into master Jun 6, 2023
10 of 11 checks passed
@fengmk2 fengmk2 deleted the fix-worker_threads-missing-address branch June 6, 2023 04:53
fengmk2 pushed a commit that referenced this pull request Jun 6, 2023
[skip ci]

## [2.1.1](v2.1.0...v2.1.1) (2023-06-06)

### Bug Fixes

* worker_threads start auto add port when server.address() return null ([#108](#108)) ([62d6d0b](62d6d0b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant