{"action":"created","issue":{"url":"https://api.github.com/repos/binux/pyspider/issues/503","repository_url":"https://api.github.com/repos/binux/pyspider","labels_url":"https://api.github.com/repos/binux/pyspider/issues/503/labels{/name}","comments_url":"https://api.github.com/repos/binux/pyspider/issues/503/comments","events_url":"https://api.github.com/repos/binux/pyspider/issues/503/events","html_url":"https://github.com/binux/pyspider/issues/503","id":168348916,"number":503,"title":"Phantomjs resource timeout","user":{"login":"volvofixthis","id":8951380,"avatar_url":"https://avatars.githubusercontent.com/u/8951380?v=3","gravatar_id":"","url":"https://api.github.com/users/volvofixthis","html_url":"https://github.com/volvofixthis","followers_url":"https://api.github.com/users/volvofixthis/followers","following_url":"https://api.github.com/users/volvofixthis/following{/other_user}","gists_url":"https://api.github.com/users/volvofixthis/gists{/gist_id}","starred_url":"https://api.github.com/users/volvofixthis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/volvofixthis/subscriptions","organizations_url":"https://api.github.com/users/volvofixthis/orgs","repos_url":"https://api.github.com/users/volvofixthis/repos","events_url":"https://api.github.com/users/volvofixthis/events{/privacy}","received_events_url":"https://api.github.com/users/volvofixthis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-29T15:20:02Z","updated_at":"2016-07-31T09:38:51Z","closed_at":null,"body":"I think for phantomjs render we need stand alone parameter which can be less then timeout.\r\nFor example i have site where one js file have whery long loading time, it is comming from third party statistic code, which i didn't need for site functional normal. So i need setup timeout right. Then we need this settings:\r\ntimeout=5\r\nresource_timeout=timeout-2=3\r\n\r\nThis is my temporarily fix for this in phantomjs fetcher:\r\n    page.settings.loadImages = fetch.load_images === undefined ? true : fetch.load_images;\r\n    if (fetch.timeout > 3) {\r\n      fetch.timeout = fetch.timeout - 2;\r\n    }\r\n    page.settings.resourceTimeout = fetch.timeout ? fetch.timeout * 1000 : 120*1000;\r\n\r\nWithout this fix global timeout will appear and we don't get any content from phantomjs."},"comment":{"url":"https://api.github.com/repos/binux/pyspider/issues/comments/236420608","html_url":"https://github.com/binux/pyspider/issues/503#issuecomment-236420608","issue_url":"https://api.github.com/repos/binux/pyspider/issues/503","id":236420608,"user":{"login":"binux","id":646451,"avatar_url":"https://avatars.githubusercontent.com/u/646451?v=3","gravatar_id":"","url":"https://api.github.com/users/binux","html_url":"https://github.com/binux","followers_url":"https://api.github.com/users/binux/followers","following_url":"https://api.github.com/users/binux/following{/other_user}","gists_url":"https://api.github.com/users/binux/gists{/gist_id}","starred_url":"https://api.github.com/users/binux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binux/subscriptions","organizations_url":"https://api.github.com/users/binux/orgs","repos_url":"https://api.github.com/users/binux/repos","events_url":"https://api.github.com/users/binux/events{/privacy}","received_events_url":"https://api.github.com/users/binux/received_events","type":"User","site_admin":false},"created_at":"2016-07-31T09:38:51Z","updated_at":"2016-07-31T09:38:51Z","body":"279c53b should fix this."}}
{"actor":{"display_login":"binux"}}