Skip to content

Instantly share code, notes, and snippets.

@rakvat
rakvat / server.rb
Created June 4, 2014 20:38
reel server example that crashes when client is killed (https://github.com/celluloid/reel/issues/150)
require 'reel'
#0.4.0
#class MyServer < Reel::Server
#0.5.0
class MyServer < Reel::Server::HTTP
def initialize(host = "127.0.0.1", port = 3000)
super(host, port, &method(:on_connection))
end