-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
Websocket upgrade fails on unix socket #318
Comments
Please add |
I've attached the trace, I don't see anything obvious at first glance: trace.txt |
Right the problem is with the Gun should not send garbage so this ticket should remain open, and I believe users of unix sockets will be required to provide the host themselves as we cannot guess it in this scenario so the documentation should be updated to reflect that. Thanks for the trace! |
Thanks! That fixed it for me. For anyone coming here with the same issue, this was my change: streamref = :gun.ws_upgrade(pid, '/ws', [{<<"host">>, <<"localhost">>}]) |
I will make the default host for Unix sockets be |
When upgrading a unix socket connection to a websocket connection using this snippet I get a failure
ws_upgrade_failed
response. I'm able to connect to this service and perform a websocket upgrade using other clients in other languages, so I don't think it is an issue with the server implementationresults
This is successful if I use a standard
:gun.open
connection over TCP/IP, is there something I'm missing for the unix socket case?The text was updated successfully, but these errors were encountered: