Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
app = proc do |env|
# This is a Ruby C extension method that we've written to simulate a freeze.
# It sleeps indefinitely, and unlike Kernel#sleep it does not unlock the Ruby
# 1.9 interpreter's GIL, so it really freezes everything.
{ "Content-Type" => "text/html" },
["hello world\n"]
run app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment