require 'reel'
class RequestHandler
def initialize(host, port)
logger.info "HTTP Request Handler initialized on #{host}:#{port}"
@server = Reel::Server.supervise(host, port) do |connection|
connection.each_request do |request|
raise "blat"
end
end
end
end
Given code like this:
I get duplicate exceptions in the logs:
Good news is that, despite the scary looking text, the Reel server does continue to process requests.