{"action":"created","issue":{"url":"https://api.github.com/repos/prerender/prerender/issues/301","repository_url":"https://api.github.com/repos/prerender/prerender","labels_url":"https://api.github.com/repos/prerender/prerender/issues/301/labels{/name}","comments_url":"https://api.github.com/repos/prerender/prerender/issues/301/comments","events_url":"https://api.github.com/repos/prerender/prerender/issues/301/events","html_url":"https://github.com/prerender/prerender/issues/301","id":148175138,"number":301,"title":"Possible to retry request if PhantomJS restarts?","user":{"login":"danconnell","id":2864564,"avatar_url":"https://avatars.githubusercontent.com/u/2864564?v=3","gravatar_id":"","url":"https://api.github.com/users/danconnell","html_url":"https://github.com/danconnell","followers_url":"https://api.github.com/users/danconnell/followers","following_url":"https://api.github.com/users/danconnell/following{/other_user}","gists_url":"https://api.github.com/users/danconnell/gists{/gist_id}","starred_url":"https://api.github.com/users/danconnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danconnell/subscriptions","organizations_url":"https://api.github.com/users/danconnell/orgs","repos_url":"https://api.github.com/users/danconnell/repos","events_url":"https://api.github.com/users/danconnell/events{/privacy}","received_events_url":"https://api.github.com/users/danconnell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-13T20:30:13Z","updated_at":"2016-04-13T20:43:43Z","closed_at":null,"body":"Is it possible to retry a request if PhantomJS is restarted in the middle of the request instead of just aborting?\r\n\r\nI see a number of these in my logs:\r\n`PhantomJS restarted in the middle of this request. Aborting...`\r\n\r\nThis then shows as a bunch of 504s when doing a Moz Crawl of my site.\r\n\r\nPossible through native support by prerender? Or could it be implemented as a plugin using the available hooks? If so, any guidance on where to begin with that would be appreciated and I could look into making a PR for that.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/prerender/prerender/issues/comments/209639994","html_url":"https://github.com/prerender/prerender/issues/301#issuecomment-209639994","issue_url":"https://api.github.com/repos/prerender/prerender/issues/301","id":209639994,"user":{"login":"thoop","id":1259374,"avatar_url":"https://avatars.githubusercontent.com/u/1259374?v=3","gravatar_id":"","url":"https://api.github.com/users/thoop","html_url":"https://github.com/thoop","followers_url":"https://api.github.com/users/thoop/followers","following_url":"https://api.github.com/users/thoop/following{/other_user}","gists_url":"https://api.github.com/users/thoop/gists{/gist_id}","starred_url":"https://api.github.com/users/thoop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoop/subscriptions","organizations_url":"https://api.github.com/users/thoop/orgs","repos_url":"https://api.github.com/users/thoop/repos","events_url":"https://api.github.com/users/thoop/events{/privacy}","received_events_url":"https://api.github.com/users/thoop/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T20:43:43Z","updated_at":"2016-04-13T20:43:43Z","body":"It would be possible but would add a bit of weird complexity and possible looping issues if a page were to keep crashing PhantomJS. We've tested this before on our hosted service and it didn't provide any benefit so we removed it.\r\n\r\nI might be beneficial for us to change the \"iterations\" functionality to only restart PhantomJS if 0 requests are in flight which might prevent some of those aborted requests.\r\n\r\nIf you are seeing lots of those you might want to spread our your load across more servers."}}