examples/http_server_multishot.rb in iou-0.1 vs examples/http_server_multishot.rb in iou-0.2

- old
+ new

@@ -20,12 +20,10 @@ def setup_connection(fd) log "Connection accepted fd #{fd}" parser = Http::Parser.new parser.on_message_complete = -> { - http_send_response(fd, "Hello, world!\n") do - @ring.prep_close(fd: fd) - end + http_send_response(fd, "Hello, world!\n") } http_prep_read(fd, parser) end