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

WebSocketError: I/O failure when connecting with incorrect URI. #259

Open
milliero-se opened this issue Aug 31, 2024 · 0 comments
Open

WebSocketError: I/O failure when connecting with incorrect URI. #259

milliero-se opened this issue Aug 31, 2024 · 0 comments

Comments

@milliero-se
Copy link

milliero-se commented Aug 31, 2024

When listening for a WebSocket connection with --restrict-uri, a client attempting to connect to another URI (e.g. to access a static file) results in a

websocat: WebSocketError: I/O failure

I have no noticed downsides except an annoying message. Perhaps this is as designed.

websocat --version reports 1.13.0.

Reproduce with

websocat --restrict-uri=/ws ws-l:127.0.0.1:8080 - &
curl 127.0.0.1:8080
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

No branches or pull requests

1 participant