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

Broken when running against solana-test-validator #175

Open
esemeniuc opened this issue Dec 14, 2022 · 2 comments
Open

Broken when running against solana-test-validator #175

esemeniuc opened this issue Dec 14, 2022 · 2 comments

Comments

@esemeniuc
Copy link

esemeniuc commented Dec 14, 2022

Seems to fail when using localhost versus a direct ip

# localhost fails
➜  ~ websocat -v ws://localhost:8900/
[INFO  websocat::lints] Auto-inserting the line mode
[INFO  websocat::stdio_threaded_peer] get_stdio_peer (threaded)
[INFO  websocat::ws_client_peer] get_ws_client_peer
websocat: WebSocketError: I/O failure
websocat: error running


# ip works
➜  ~ websocat -v ws://127.0.0.1:8900/
[INFO  websocat::lints] Auto-inserting the line mode
[INFO  websocat::stdio_threaded_peer] get_stdio_peer (threaded)
[INFO  websocat::ws_client_peer] get_ws_client_peer
[INFO  websocat::ws_client_peer] Connected to ws

Platform

Arch linux
5.15.82-1-lts
websocat 1.11.0
solana-test-validator 1.14.10 (src:df128573; feat:3036606309)

@vi
Copy link
Owner

vi commented Dec 14, 2022

Probably IPv6 failure. Does ws://[::1]:8900/ work?

Unfortunately, Websocat v1 does not properly support Happy Eyeballs (unlike Websocat v3), so if hostname resovles to multiple IPs, it would work reliably if all of them work (e.g. if server listens for IPv6+IPv4 instead of just IPv4).

Duplicate of #23.

@esemeniuc
Copy link
Author

Unfortunately the ipv6 endpoint doesn't work:

➜  ~ websocat -v "ws://[::1]:8900/"
[INFO  websocat::lints] Auto-inserting the line mode
[INFO  websocat::stdio_threaded_peer] get_stdio_peer (threaded)
[INFO  websocat::ws_client_peer] get_ws_client_peer
websocat: WebSocketError: I/O failure
websocat: error running
➜  ~

By default the service listens to ipv4 only:

➜  ~ sudo ss -tulpn | grep 8900
tcp   LISTEN 0      1024                                     0.0.0.0:8900       0.0.0.0:*    users:(("solana-test-val",pid=298084,fd=85))                                                                                                    
➜  ~

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

2 participants