search for: hellohandl

Displaying 1 result from an estimated 1 matches for "hellohandl".

Did you mean: hellohandler
2007 Dec 07
0
Handling multiple requests at once
Hi, I''m trying to write a custom handler for mongrel. My understanding is that whilst rails is not multithreaded, mongrel is - does this mean it should be able to handle multiple requests at once? I''ve written the following test code class HelloHandler < Mongrel::HttpHandler def process(request, response) response.start(200) do |head, out| head["Content-Type"] = "text/html" (1..50).each do |i| puts "Loop #{i}" sleep 3 end out.write("FINISHED") end end end uri &q...