{"action":"created","issue":{"url":"https://api.github.com/repos/hackappcom/iloot/issues/40","labels_url":"https://api.github.com/repos/hackappcom/iloot/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/hackappcom/iloot/issues/40/comments","events_url":"https://api.github.com/repos/hackappcom/iloot/issues/40/events","html_url":"https://github.com/hackappcom/iloot/issues/40","id":68926566,"number":40,"title":"BadStatusLine issue with greenlet ???","user":{"login":"darrynza","id":5657408,"avatar_url":"https://avatars.githubusercontent.com/u/5657408?v=3","gravatar_id":"","url":"https://api.github.com/users/darrynza","html_url":"https://github.com/darrynza","followers_url":"https://api.github.com/users/darrynza/followers","following_url":"https://api.github.com/users/darrynza/following{/other_user}","gists_url":"https://api.github.com/users/darrynza/gists{/gist_id}","starred_url":"https://api.github.com/users/darrynza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrynza/subscriptions","organizations_url":"https://api.github.com/users/darrynza/orgs","repos_url":"https://api.github.com/users/darrynza/repos","events_url":"https://api.github.com/users/darrynza/events{/privacy}","received_events_url":"https://api.github.com/users/darrynza/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-16T13:40:59Z","updated_at":"2015-04-16T21:28:51Z","closed_at":null,"body":"Traceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py\", line 340, in run\r\n    result = self._run(*self.args, **self.kwargs)\r\n  File \"iloot.py\", line 301, in download_chunks\r\n    container.host_info.uri, \"\", headers)\r\n  File \"iloot.py\", line 95, in probobuf_request\r\n    response = conn.getresponse()\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1045, in getresponse\r\n    response.begin()\r\n  File \"/usr/lib/python2.7/httplib.py\", line 409, in begin\r\n    version, status, reason = self._read_status()\r\n  File \"/usr/lib/python2.7/httplib.py\", line 373, in _read_status\r\n    raise BadStatusLine(line)\r\nBadStatusLine: ''\r\n<Greenlet at 0xb56467acL: <bound method MobileBackupClient.download_chunks of <__main__.MobileBackupClient object at 0xb6c59aac>>([<chunkserver_pb2.FileChecksumStorageHostChunkList)> failed with BadStatusLine\r\n\r\nTraceback (most recent call last):\r\n  File \"iloot.py\", line 627, in <module>\r\n    download_backup(args.apple_id, args.password, args.output, args.item_types, args.snapshot, args.combined, args.itunes_style, args.domain, args.threads)\r\n  File \"iloot.py\", line 588, in download_backup\r\n    client.download(UDID, types)\r\n  File \"iloot.py\", line 465, in download\r\n    self.authorize_get(authTokens, snapshot)\r\n  File \"iloot.py\", line 256, in authorize_get\r\n    for res in pool.imap_unordered(self.download_chunks, containers):\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/pool.py\", line 220, in next\r\n    raise value.exc\r\nhttplib.BadStatusLine: ''\r\n\r\n\r\nThanks :)"},"comment":{"url":"https://api.github.com/repos/hackappcom/iloot/issues/comments/93843733","html_url":"https://github.com/hackappcom/iloot/issues/40#issuecomment-93843733","issue_url":"https://api.github.com/repos/hackappcom/iloot/issues/40","id":93843733,"user":{"login":"darrynza","id":5657408,"avatar_url":"https://avatars.githubusercontent.com/u/5657408?v=3","gravatar_id":"","url":"https://api.github.com/users/darrynza","html_url":"https://github.com/darrynza","followers_url":"https://api.github.com/users/darrynza/followers","following_url":"https://api.github.com/users/darrynza/following{/other_user}","gists_url":"https://api.github.com/users/darrynza/gists{/gist_id}","starred_url":"https://api.github.com/users/darrynza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrynza/subscriptions","organizations_url":"https://api.github.com/users/darrynza/orgs","repos_url":"https://api.github.com/users/darrynza/repos","events_url":"https://api.github.com/users/darrynza/events{/privacy}","received_events_url":"https://api.github.com/users/darrynza/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T21:28:51Z","updated_at":"2015-04-16T21:28:51Z","body":"Hi, \r\nSo I'm down to 5 threads at the moment , testing it but it dies at random places. i got 330MB of a 1GB backup on 50 threads, then 160MB/1GB on 10/20 threads.. you sure this is the reason? \r\n\r\n\r\nthis error is what I am getting now, seems more verbose than the previous one and seems to point to SSL issues?\r\n\r\nFile \"/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py\", line 340, in run\r\n    result = self._run(*self.args, **self.kwargs)\r\n  File \"./iloot.py\", line 302, in download_chunks\r\n    container.host_info.uri, \"\", headers)\r\n  File \"./iloot.py\", line 95, in probobuf_request\r\n    request = conn.request(method, url, body, headers)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 973, in request\r\n    self._send_request(method, url, body, headers)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1007, in _send_request\r\n    self.endheaders(body)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 969, in endheaders\r\n    self._send_output(message_body)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 829, in _send_output\r\n    self.send(msg)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 791, in send\r\n    self.connect()\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1176, in connect\r\n    self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/_ssl2.py\", line 399, in wrap_socket\r\n    ciphers=ciphers)\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/_ssl2.py\", line 93, in __init__\r\n    self.do_handshake()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/_ssl2.py\", line 310, in do_handshake\r\n    return self._sslobj.do_handshake()\r\nSSLError: [Errno 8] _ssl.c:510: EOF occurred in violation of protocol\r\n<Greenlet at 0xb4348b6cL: <bound method MobileBackupClient.download_chunks of <__main__.MobileBackupClient object at 0xb6c1cc4c>>([<chunkserver_pb2.FileChecksumStorageHostChunkList)> failed with SSLError\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py\", line 340, in run\r\n    result = self._run(*self.args, **self.kwargs)\r\n  File \"./iloot.py\", line 302, in download_chunks\r\n    container.host_info.uri, \"\", headers)\r\n  File \"./iloot.py\", line 96, in probobuf_request\r\n    response = conn.getresponse()\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1045, in getresponse\r\n    response.begin()\r\n  File \"/usr/lib/python2.7/httplib.py\", line 409, in begin\r\n    version, status, reason = self._read_status()\r\n  File \"/usr/lib/python2.7/httplib.py\", line 373, in _read_status\r\n    raise BadStatusLine(line)\r\nBadStatusLine: ''\r\n<Greenlet at 0xb434b20cL: <bound method MobileBackupClient.download_chunks of <__main__.MobileBackupClient object at 0xb6c1cc4c>>([<chunkserver_pb2.FileChecksumStorageHostChunkList)> failed with BadStatusLine\r\n\r\nTraceback (most recent call last):\r\n  File \"./iloot.py\", line 628, in <module>\r\n    download_backup(args.apple_id, args.password, args.output, args.item_types, args.snapshot, args.combined, args.itunes_style, args.domain, args.threads)\r\n  File \"./iloot.py\", line 589, in download_backup\r\n    client.download(UDID, types)\r\n  File \"./iloot.py\", line 466, in download\r\n    self.authorize_get(authTokens, snapshot)\r\n  File \"./iloot.py\", line 257, in authorize_get\r\n    for res in pool.imap_unordered(self.download_chunks, containers):\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/pool.py\", line 220, in next\r\n    raise value.exc\r\nssl.SSLError: [Errno 8] _ssl.c:510: EOF occurred in violation of protocol\r\n"}}