{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/react-rails/issues/334","labels_url":"https://api.github.com/repos/reactjs/react-rails/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/react-rails/issues/334/comments","events_url":"https://api.github.com/repos/reactjs/react-rails/issues/334/events","html_url":"https://github.com/reactjs/react-rails/issues/334","id":101493966,"number":334,"title":"Timing out after 1.0 -> 1.1 upgrade","user":{"login":"jakecraige","id":3799709,"avatar_url":"https://avatars.githubusercontent.com/u/3799709?v=3","gravatar_id":"","url":"https://api.github.com/users/jakecraige","html_url":"https://github.com/jakecraige","followers_url":"https://api.github.com/users/jakecraige/followers","following_url":"https://api.github.com/users/jakecraige/following{/other_user}","gists_url":"https://api.github.com/users/jakecraige/gists{/gist_id}","starred_url":"https://api.github.com/users/jakecraige/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakecraige/subscriptions","organizations_url":"https://api.github.com/users/jakecraige/orgs","repos_url":"https://api.github.com/users/jakecraige/repos","events_url":"https://api.github.com/users/jakecraige/events{/privacy}","received_events_url":"https://api.github.com/users/jakecraige/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-17T19:33:59Z","updated_at":"2015-08-17T20:50:31Z","closed_at":null,"body":"My application Rails 4.2.2 (Ruby 2.2.2) on Heroku is timing out after upgrading. I'm using `Rack::Timeout` to kill requests after 10s and it hits it every time.\r\n\r\nHere's what I'm seeing in the logs:\r\n\r\n```\r\n2015-08-17T19:29:51.612196+00:00 app[web.1]:   Rendered a_template.html.slim (20.3ms)\r\n2015-08-17T19:29:52.063606+00:00 app[web.1]: source=rack-timeout id=fbd02348-8cb0-4ac9-84af-c04d428c1a9c wait=306ms timeout=10000ms service=2062ms state=active\r\n2015-08-17T19:29:53.004007+00:00 app[web.1]: source=rack-timeout id=fbd02348-8cb0-4ac9-84af-c04d428c1a9c wait=306ms timeout=10000ms service=3003ms state=active\r\n2015-08-17T19:29:54.007696+00:00 app[web.1]: source=rack-timeout id=fbd02348-8cb0-4ac9-84af-c04d428c1a9c wait=306ms timeout=10000ms service=4006ms state=active\r\n2015-08-17T19:29:55.004989+00:00 app[web.1]: source=rack-timeout id=fbd02348-8cb0-4ac9-84af-c04d428c1a9c wait=306ms timeout=10000ms service=5004ms state=active\r\n2015-08-17T19:29:56.024033+00:00 app[web.1]: source=rack-timeout id=fbd02348-8cb0-4ac9-84af-c04d428c1a9c wait=306ms timeout=10000ms service=6023ms state=active\r\n2015-08-17T19:29:57.005402+00:00 app[web.1]: source=rack-timeout id=fbd02348-8cb0-4ac9-84af-c04d428c1a9c wait=306ms timeout=10000ms service=7004ms state=active\r\n2015-08-17T19:29:58.003664+00:00 app[web.1]: source=rack-timeout id=fbd02348-8cb0-4ac9-84af-c04d428c1a9c wait=306ms timeout=10000ms service=8002ms state=active\r\n2015-08-17T19:29:59.001756+00:00 app[web.1]: source=rack-timeout id=fbd02348-8cb0-4ac9-84af-c04d428c1a9c wait=306ms timeout=10000ms service=9000ms state=active\r\n2015-08-17T19:30:00.004667+00:00 app[web.1]: source=rack-timeout id=fbd02348-8cb0-4ac9-84af-c04d428c1a9c wait=306ms timeout=10000ms service=10003ms state=timed_out\r\n```\r\n\r\nWhen I rollback to 1.0 it goes away and I no longer timeout. I tried setting the transformer to the `JSXTransformer` to eliminate `Babel` as a possibility and I still see the same issue so it looks like it's something else.\r\n\r\nAny idea what could be causing this?"},"comment":{"url":"https://api.github.com/repos/reactjs/react-rails/issues/comments/131957771","html_url":"https://github.com/reactjs/react-rails/issues/334#issuecomment-131957771","issue_url":"https://api.github.com/repos/reactjs/react-rails/issues/334","id":131957771,"user":{"login":"jakecraige","id":3799709,"avatar_url":"https://avatars.githubusercontent.com/u/3799709?v=3","gravatar_id":"","url":"https://api.github.com/users/jakecraige","html_url":"https://github.com/jakecraige","followers_url":"https://api.github.com/users/jakecraige/followers","following_url":"https://api.github.com/users/jakecraige/following{/other_user}","gists_url":"https://api.github.com/users/jakecraige/gists{/gist_id}","starred_url":"https://api.github.com/users/jakecraige/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakecraige/subscriptions","organizations_url":"https://api.github.com/users/jakecraige/orgs","repos_url":"https://api.github.com/users/jakecraige/repos","events_url":"https://api.github.com/users/jakecraige/events{/privacy}","received_events_url":"https://api.github.com/users/jakecraige/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T20:50:31Z","updated_at":"2015-08-17T20:50:31Z","body":"I am using server rendering and MRI. \r\n\r\nWe actually have an interesting set up where we are calling `react_component` around 5+ times per request. I'm unsure if it could be related to that and the pooling change.\r\n\r\nFor a sanity check I configured it with:\r\n\r\n```ruby\r\n    config.react.server_renderer_pool_size = 10\r\n    config.react.jsx_transformer_class = React::JSX::JSXTransformer\r\n```\r\n\r\nTo try and mimic the previous version and the same thing happens.\r\n\r\nI disabled pre-rendering and it loads fine, so it's definitely related to that. We were sometimes experiencing timeouts before the upgrade to 1.1. \r\n\r\nSince this is tightly integrated to a private application I'm not sure if I can pull out a failing test. But here's a stack trace of one of them that timed out(1.0) https://app.honeybadger.io/fault/44154/42efc9f4960c0e6686bd67844466a881\r\n\r\nThat prerender_component method looks like:\r\n\r\n```ruby\r\n  def prerender_component(component_name, props)\r\n    react_component(component_name, deep_camelize_keys(props), { prerender: false })\r\n  end\r\n```\r\n\r\nAny thoughts?"}}