Skip to content

fix: crash when initialising compiler and forks#646

Merged
zamotany merged 1 commit into
masterfrom
fix/compiler-ws-address
Sep 23, 2019
Merged

fix: crash when initialising compiler and forks#646
zamotany merged 1 commit into
masterfrom
fix/compiler-ws-address

Conversation

@zamotany
Copy link
Copy Markdown
Contributor

Fixes #630

@zamotany zamotany requested a review from thymikee September 23, 2019 11:45
__dirname,
transportServer.options.server.address(),
options
`localhost:${port}`,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is setting this to hardcoded localhost is intended?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, I have to supply some host, and the host from transportServer is just :: which is invalid. This server will always run on the same machine and Haul main process. Even if the haul is run on different machine than the app or in a remote location the localhost should point to the same machine as Haul main process is running on.

Copy link
Copy Markdown
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

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

👍 calling init after constructor feels weird, and normally I'd advise to put some guards on any method of that class, but since this is only used in one place, I say meh.

@zamotany zamotany merged commit 0dc6675 into master Sep 23, 2019
@zamotany zamotany deleted the fix/compiler-ws-address branch September 23, 2019 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebSocket connection error when trying to load bundle

2 participants