Use gem "rack-timeout" to set timeout