Open OndroNR opened 9 years ago
Ah, this is a bad behavior of the backported
code.
Changing that to this will work for now:
Reel::Server::HTTP.supervise(args:['127.0.0.1', 3000])
Thanks for reply, but it doesn't work for me. Same error.
Do you have any other Celluloid
related code in your project? If not, change to:
require 'celluloid/current'
I'll look at this some more in the meantime.
In 0.16 this works as expected:
require 'celluloid/autostart'
require 'reel'
Reel::Server::HTTP.supervise("0.0.0.0", 3001) do |connection|
raise if [false, true].sample
connection.each_request do |request|
request.respond :ok, "Hello, world!"
end
end
however in 0.17.2 this won't restart after crash:
require 'celluloid/current'
require 'reel'
Reel::Server::HTTP.supervise({args: ["0.0.0.0", 3001]}) do |connection|
raise if [false, true].sample
connection.each_request do |request|
request.respond :ok, "Hello, world!"
end
end
With Celluloid 0.17.0 this sample code with supervise (simple
HTTP.run
works) fails (works with Celluloid 0.16):with following log: