Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

fix: handle listen error #224

Merged
merged 1 commit into from
Nov 5, 2022
Merged

fix: handle listen error #224

merged 1 commit into from
Nov 5, 2022

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Nov 5, 2022

The net.Server .listen callback is not a node-style callback that gets passed an error, it's a listener for the listen event.

To handle errors when .listening, one must listen for the error event, so update the code to do that and add a test to prevent regressions.

The `net.Server` `.listen` callback is not a node-style callback,
it's a listener for the `listen` event.

To handle `listen` errors, one must listen for the `error` event,
so update the code to do that and add a test to prevent regressions.
@achingbrain achingbrain merged commit 4125e9e into master Nov 5, 2022
@achingbrain achingbrain deleted the fix/handle-listen-error branch November 5, 2022 14:29
github-actions bot pushed a commit that referenced this pull request Nov 5, 2022
## [5.0.2](v5.0.1...v5.0.2) (2022-11-05)

### Bug Fixes

* handle listen error ([#224](#224)) ([4125e9e](4125e9e))
@github-actions
Copy link

github-actions bot commented Nov 5, 2022

🎉 This PR is included in version 5.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant