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(server): return err on WS handshake err #1288

Merged
merged 1 commit into from Feb 12, 2024
Merged

Conversation

niklasad1
Copy link
Member

I noticed this when I was replying to an issue and ws::connect should only return when the WS handshake has been completed.

@niklasad1 niklasad1 requested a review from a team as a code owner February 7, 2024 16:37
Copy link
Collaborator

@jsdw jsdw left a comment

Choose a reason for hiding this comment

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

I think this makes sense; only return when upgrade is done, whcih also allows us to return any error emitted by it!

@niklasad1 niklasad1 merged commit d9c4a5c into master Feb 12, 2024
11 checks passed
@niklasad1 niklasad1 deleted the na-fix-low-level-api branch February 12, 2024 09:06
niklasad1 added a commit that referenced this pull request Mar 20, 2024
niklasad1 added a commit that referenced this pull request Mar 20, 2024
* Revert "fix(server): return err on WS handshake err (#1288)"

This reverts commit d9c4a5c.

* fix docs

* Update server/src/transport/ws.rs
niklasad1 added a commit that referenced this pull request Mar 20, 2024
* Revert "fix(server): return err on WS handshake err (#1288)"

This reverts commit d9c4a5c.

* fix docs

* Update server/src/transport/ws.rs
niklasad1 added a commit that referenced this pull request Mar 25, 2024
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.

None yet

2 participants