Skip to content Skip to sidebar Skip to footer

Rails Actioncontroller::live - Sends Everything At Once Instead Of Async

I have an issue with rails ActionController::Live In the end I want to show the progress of FFMPEG to the user, but for now I want to get this minimal example running: Rails media_

Solution 1:

I could resolve the issue, by using a different Webserver. Previously I used thin and I found this Post on SO:

you can't use AC::Live with Thin

An Explanation can be found here:

https://github.com/macournoyer/thin/issues/254#issuecomment-67494889

Thin doesn't work with streaming and ActionController::Live.

The only approach that works with Thin is to use the async API: https://github.com/macournoyer/thin_async. Thin is built exactly for this kind of stuff and making it scale.

Or simpler, use this: https://github.com/SamSaffron/message_bus.

So switching to another Server solved the issue:

gem 'puma'

Starting with

rails s Puma

Post a Comment for "Rails Actioncontroller::live - Sends Everything At Once Instead Of Async"