Page is down. Here is a formatted copy: https://gist.github.com/4154289
By the way, check the page first, give bloggers the traffic their content deserves!
Btw here the problem was mine, I was running the Sinatra app wit "ruby app.rb", and Apache was mod_proxing to this running on port 4567.
By default mod proxy will suspend the connection 60 seconds with an error if the proxed thing returns something wrong. Idiotic default that can be avoided just with:
ProxyPass / http://127.0.0.1:4567/ retry=0
See "retry=0".Since you are running it as "ruby app.rb", I take it you aren't interested in doing an app server/web server/cache deployment. But if you aren't using thin, that's only a "gem install thin" away.
http://uwsgi-docs.readthedocs.org/en/latest/Ruby.html#runnin...