Forum: Mongrel Why Mongrel doesn't cancel connection on error?

Posted by Alexey Petrushin (axyd80)
on 2009-07-08 19:27
Why Mongrel doesn't cancel connection on error?

Example: (Mongrel using Rack)

...
def call env
  begin
    p :start
    sleep 10
  ensure
    p :stop
  end
end
...

Open browser, go to localhost:8080, and immediatelly close the browser.
Output will be:

start
<waits for 10 sec>
end

Why it doesn't cancel/kill thread immediatelly?
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.