Skip to content

fix: report an invalid URL scheme instead of crashing - #94

Merged
nmbrone merged 1 commit into
mainfrom
fix/invalid-scheme
Sep 4, 2026
Merged

fix: report an invalid URL scheme instead of crashing#94
nmbrone merged 1 commit into
mainfrom
fix/invalid-scheme

Conversation

@nmbrone

@nmbrone nmbrone commented Sep 4, 2026

Copy link
Copy Markdown
Owner

connect/1 returning a URL with any scheme other than ws or wss raised a CaseClauseError and killed the client, so handle_disconnect/3 never saw it and Minch.connect/3 blocked for the full connect timeout before raising on the dead process.

It now reports {:invalid_scheme, scheme} through the normal disconnect path.

`connect/1` returning a URL with any scheme other than `ws` or `wss` raised a `CaseClauseError` and killed the client, so `handle_disconnect/3` never saw it and `Minch.connect/3` blocked for the full connect timeout before raising on the dead process.

It now reports `{:invalid_scheme, scheme}` through the normal disconnect path.
@nmbrone
nmbrone requested a review from vshev4enko September 4, 2026 10:21
@nmbrone
nmbrone merged commit 5336598 into main Sep 4, 2026
4 checks passed
@nmbrone
nmbrone deleted the fix/invalid-scheme branch September 4, 2026 11:38
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.

2 participants