{"action":"created","issue":{"url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues/31","labels_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues/31/comments","events_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues/31/events","html_url":"https://github.com/pywebhdfs/pywebhdfs/issues/31","id":100283468,"number":31,"title":"Default timeout should be None","user":{"login":"mocsar","id":12715952,"avatar_url":"https://avatars.githubusercontent.com/u/12715952?v=3","gravatar_id":"","url":"https://api.github.com/users/mocsar","html_url":"https://github.com/mocsar","followers_url":"https://api.github.com/users/mocsar/followers","following_url":"https://api.github.com/users/mocsar/following{/other_user}","gists_url":"https://api.github.com/users/mocsar/gists{/gist_id}","starred_url":"https://api.github.com/users/mocsar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mocsar/subscriptions","organizations_url":"https://api.github.com/users/mocsar/orgs","repos_url":"https://api.github.com/users/mocsar/repos","events_url":"https://api.github.com/users/mocsar/events{/privacy}","received_events_url":"https://api.github.com/users/mocsar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-11T10:33:00Z","updated_at":"2015-09-08T09:07:03Z","closed_at":"2015-09-08T09:07:03Z","body":"The following error occures after upgarding to 0.4.0:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  ...\r\n  File \"/usr/lib/python2.7/site-packages/pywebhdfs/webhdfs.py\", line 344, in get_file_dir_status\r\n    path, operations.GETFILESTATUS)\r\n  File \"/usr/lib/python2.7/site-packages/pywebhdfs/webhdfs.py\", line 689, in _resolve_host\r\n    timeout=self.timeout)\r\n  File \"/usr/lib/python2.7/site-packages/requests/api.py\", line 69, in get\r\n    return request('get', url, params=params, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/requests/api.py\", line 50, in request\r\n    response = session.request(method=method, url=url, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/requests/sessions.py\", line 465, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/requests/sessions.py\", line 573, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/requests/adapters.py\", line 415, in send\r\n    raise ConnectionError(err, request=request)\r\nrequests.exceptions.ConnectionError: ('Connection aborted.', error(119, 'Operation now in progress'))\r\n```\r\n\r\nThe default timeout of requests is None so it would be better to use None instead of 0:\r\n\r\n```python\r\nclass PyWebHdfsClient(object):\r\n    pass\r\n\r\n    def __init__(self, host='localhost', port='50070', user_name=None,\r\n                 path_to_hosts=None, timeout=None):\r\n        pass\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues/comments/138488220","html_url":"https://github.com/pywebhdfs/pywebhdfs/issues/31#issuecomment-138488220","issue_url":"https://api.github.com/repos/pywebhdfs/pywebhdfs/issues/31","id":138488220,"user":{"login":"mocsar","id":12715952,"avatar_url":"https://avatars.githubusercontent.com/u/12715952?v=3","gravatar_id":"","url":"https://api.github.com/users/mocsar","html_url":"https://github.com/mocsar","followers_url":"https://api.github.com/users/mocsar/followers","following_url":"https://api.github.com/users/mocsar/following{/other_user}","gists_url":"https://api.github.com/users/mocsar/gists{/gist_id}","starred_url":"https://api.github.com/users/mocsar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mocsar/subscriptions","organizations_url":"https://api.github.com/users/mocsar/orgs","repos_url":"https://api.github.com/users/mocsar/repos","events_url":"https://api.github.com/users/mocsar/events{/privacy}","received_events_url":"https://api.github.com/users/mocsar/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T09:07:03Z","updated_at":"2015-09-08T09:07:03Z","body":"Thank you!"}}