{"action":"created","issue":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/324","labels_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/324/comments","events_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/324/events","html_url":"https://github.com/SeleniumHQ/selenium/pull/324","id":59837570,"number":324,"title":"support socket timeout for connections","user":{"login":"sergeychipiga","id":1479651,"avatar_url":"https://avatars.githubusercontent.com/u/1479651?v=3","gravatar_id":"","url":"https://api.github.com/users/sergeychipiga","html_url":"https://github.com/sergeychipiga","followers_url":"https://api.github.com/users/sergeychipiga/followers","following_url":"https://api.github.com/users/sergeychipiga/following{/other_user}","gists_url":"https://api.github.com/users/sergeychipiga/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeychipiga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeychipiga/subscriptions","organizations_url":"https://api.github.com/users/sergeychipiga/orgs","repos_url":"https://api.github.com/users/sergeychipiga/repos","events_url":"https://api.github.com/users/sergeychipiga/events{/privacy}","received_events_url":"https://api.github.com/users/sergeychipiga/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SeleniumHQ/selenium/labels/C-py","name":"C-py","color":"fbca04"},{"url":"https://api.github.com/repos/SeleniumHQ/selenium/labels/R-awaiting%20review","name":"R-awaiting review","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-04T18:12:20Z","updated_at":"2015-05-31T07:31:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/pulls/324","html_url":"https://github.com/SeleniumHQ/selenium/pull/324","diff_url":"https://github.com/SeleniumHQ/selenium/pull/324.diff","patch_url":"https://github.com/SeleniumHQ/selenium/pull/324.patch"},"body":"I suppose it's a good way to allow to set socket timeout in connections, because sometimes there are problems with browser socket connection via webdriver: browser is not responding and socket waits eternally.\r\nBut I would like to set time limit in tests session after which to fail a test with corresponding error message.\r\n\r\nUnfortunatelly ```socket.setdefaulttimeout()``` isn't a good solution due to real problem with ssl (https://github.com/mitmproxy/mitmproxy/issues/470).\r\n\r\nSo I think this example looks good:\r\n\r\n```python\r\nfrom selenium.webdriver.remote.remote_connection import RemoteConnection\r\n\r\nRemoteConnection.timeout = 30\r\n```"},"comment":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/comments/107137246","html_url":"https://github.com/SeleniumHQ/selenium/pull/324#issuecomment-107137246","issue_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/324","id":107137246,"user":{"login":"sergeychipiga","id":1479651,"avatar_url":"https://avatars.githubusercontent.com/u/1479651?v=3","gravatar_id":"","url":"https://api.github.com/users/sergeychipiga","html_url":"https://github.com/sergeychipiga","followers_url":"https://api.github.com/users/sergeychipiga/followers","following_url":"https://api.github.com/users/sergeychipiga/following{/other_user}","gists_url":"https://api.github.com/users/sergeychipiga/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeychipiga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeychipiga/subscriptions","organizations_url":"https://api.github.com/users/sergeychipiga/orgs","repos_url":"https://api.github.com/users/sergeychipiga/repos","events_url":"https://api.github.com/users/sergeychipiga/events{/privacy}","received_events_url":"https://api.github.com/users/sergeychipiga/received_events","type":"User","site_admin":false},"created_at":"2015-05-31T07:31:08Z","updated_at":"2015-05-31T07:31:08Z","body":"@ddavison , yep, I signed. ```Google Individual CLA \tSergey Chipiga \tMay 31, 2015 00:29 PDT```"}}