-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Establishing websocket connection in Rails app using ActionCable causes error #106
Comments
Can you give me source code so I can repro? |
Hm, I have troubles to reproduce it on a freshly generated Rails app. On the original app this is happening only more very random with the latest Falcon :( |
It looks like hijack is not working correctly |
Can you try the latest release. |
@ioquatix tried, but no change :( |
@ioquatix In fact, it's not true, it occurred again very randomly :( |
Do you have some time to peer on this? |
Thanks for the report, I will investigate. |
I see the problem here: https://github.com/socketry/falcon/blame/45ca2be3cc8228e491b7b7298c228c2ba777ddc3/lib/falcon/adapters/rack.rb#L205 It's returning nil when there is a full hijack. At least, this seems somewhat wrong. |
The error message is somewhat misleading since it only kills the request task and not the underlying connection, which should be working correctly. In any case, I'll introduce a dedicated exception for this case. |
This should be fixed (I tested it a bit), however full hijack will present an exception in the log since it terminates the normal request flow control using an exception and I don't want to handle this case explicitly in async-http as I actually want to minimise the blast radius of the full hijack feature. |
The text was updated successfully, but these errors were encountered: