{"action":"created","issue":{"url":"https://api.github.com/repos/thefab/tornadis/issues/7","labels_url":"https://api.github.com/repos/thefab/tornadis/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/thefab/tornadis/issues/7/comments","events_url":"https://api.github.com/repos/thefab/tornadis/issues/7/events","html_url":"https://github.com/thefab/tornadis/issues/7","id":67373322,"number":7,"title":"What does this error mean and how should I handle it?","user":{"login":"vgoklani","id":180487,"avatar_url":"https://avatars.githubusercontent.com/u/180487?v=3","gravatar_id":"","url":"https://api.github.com/users/vgoklani","html_url":"https://github.com/vgoklani","followers_url":"https://api.github.com/users/vgoklani/followers","following_url":"https://api.github.com/users/vgoklani/following{/other_user}","gists_url":"https://api.github.com/users/vgoklani/gists{/gist_id}","starred_url":"https://api.github.com/users/vgoklani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vgoklani/subscriptions","organizations_url":"https://api.github.com/users/vgoklani/orgs","repos_url":"https://api.github.com/users/vgoklani/repos","events_url":"https://api.github.com/users/vgoklani/events{/privacy}","received_events_url":"https://api.github.com/users/vgoklani/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thefab/tornadis/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-04-09T14:23:08Z","updated_at":"2015-05-28T03:59:13Z","closed_at":"2015-05-25T12:41:34Z","body":"Hi - Quick question, I occasionally get this exception, how should I handle it?\r\n\r\nThanks!\r\n\r\n[E 150409 10:21:13 ioloop:588] Exception in callback None\r\n    Traceback (most recent call last):\r\n      File \"/opt/anaconda/lib/python2.7/site-packages/tornado-4.1-py2.7-macosx-10.5-x86_64.egg/tornado/ioloop.py\", line 840, in start\r\n        handler_func(fd_obj, events)\r\n      File \"/opt/anaconda/lib/python2.7/site-packages/tornado-4.1-py2.7-macosx-10.5-x86_64.egg/tornado/stack_context.py\", line 275, in null_wrapper\r\n        return fn(*args, **kwargs)\r\n      File \"/opt/anaconda/lib/python2.7/site-packages/tornadis/connection.py\", line 189, in _handle_events\r\n        self._handle_read()\r\n      File \"/opt/anaconda/lib/python2.7/site-packages/tornadis/connection.py\", line 201, in _handle_read\r\n        chunk = self._read(self.read_page_size)\r\n      File \"/opt/anaconda/lib/python2.7/site-packages/tornadis/connection.py\", line 244, in _read\r\n        raise ConnectionError(\"error during socket.recv: %s\" % e)\r\n    ConnectionError: error during socket.recv: [Errno 60] Operation timed out\r\nError -> 'StopObject' object is not iterable"},"comment":{"url":"https://api.github.com/repos/thefab/tornadis/issues/comments/106164258","html_url":"https://github.com/thefab/tornadis/issues/7#issuecomment-106164258","issue_url":"https://api.github.com/repos/thefab/tornadis/issues/7","id":106164258,"user":{"login":"vgoklani","id":180487,"avatar_url":"https://avatars.githubusercontent.com/u/180487?v=3","gravatar_id":"","url":"https://api.github.com/users/vgoklani","html_url":"https://github.com/vgoklani","followers_url":"https://api.github.com/users/vgoklani/followers","following_url":"https://api.github.com/users/vgoklani/following{/other_user}","gists_url":"https://api.github.com/users/vgoklani/gists{/gist_id}","starred_url":"https://api.github.com/users/vgoklani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vgoklani/subscriptions","organizations_url":"https://api.github.com/users/vgoklani/orgs","repos_url":"https://api.github.com/users/vgoklani/repos","events_url":"https://api.github.com/users/vgoklani/events{/privacy}","received_events_url":"https://api.github.com/users/vgoklani/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T03:59:13Z","updated_at":"2015-05-28T03:59:13Z","body":"Just got back! Thanks for all the updates! :)\r\n\r\nDo you have any examples, or patterns, that should follow for using your library. Specifically, I am referring to the connection disconnection issues. What's the preferred method for connecting and then auto-reconnecting if the connection goes stale?\r\n\r\nThanks!"}}