{"action":"created","issue":{"url":"https://api.github.com/repos/n1nj4sec/pupy/issues/163","repository_url":"https://api.github.com/repos/n1nj4sec/pupy","labels_url":"https://api.github.com/repos/n1nj4sec/pupy/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/n1nj4sec/pupy/issues/163/comments","events_url":"https://api.github.com/repos/n1nj4sec/pupy/issues/163/events","html_url":"https://github.com/n1nj4sec/pupy/issues/163","id":173048101,"number":163,"title":"Pupy hangs forever when command for execution also hangs","user":{"login":"alxchk","id":329535,"avatar_url":"https://avatars.githubusercontent.com/u/329535?v=3","gravatar_id":"","url":"https://api.github.com/users/alxchk","html_url":"https://github.com/alxchk","followers_url":"https://api.github.com/users/alxchk/followers","following_url":"https://api.github.com/users/alxchk/following{/other_user}","gists_url":"https://api.github.com/users/alxchk/gists{/gist_id}","starred_url":"https://api.github.com/users/alxchk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxchk/subscriptions","organizations_url":"https://api.github.com/users/alxchk/orgs","repos_url":"https://api.github.com/users/alxchk/repos","events_url":"https://api.github.com/users/alxchk/events{/privacy}","received_events_url":"https://api.github.com/users/alxchk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-24T20:19:50Z","updated_at":"2016-08-25T17:03:17Z","closed_at":null,"body":"So, currently I try to use pupy with targets which are quite far and which are quite laggy. The main problem is that after things like this\r\n\r\n```\r\n>> ERROR:root:timeout occured !\r\nERROR:root:Traceback (most recent call last):\r\n  File \"pupy/pupylib/PupyService.py\", line 67, in on_connect\r\n    self.pupy_srv.add_client(self)\r\n  File \"pupy/pupylib/PupyServer.py\", line 352, in add_client\r\n    addr = conn.modules['pupy'].get_connect_back_host()\r\n  File \"python2.7/site-packages/rpyc/core/netref.py\", line 196, in __call__\r\n    return syncreq(_self, consts.HANDLE_CALL, args, kwargs)\r\n  File \"python2.7/site-packages/rpyc/core/netref.py\", line 71, in syncreq\r\n    return conn.sync_request(handler, oid, *args)\r\n  File \"python2.7/site-packages/rpyc/core/protocol.py\", line 438, in sync_request\r\n    self.serve(0.1)\r\n  File \"python2.7/site-packages/rpyc/core/protocol.py\", line 387, in serve\r\n    data = self._recv(timeout, wait_for_lock = True)\r\n  File \"python2.7/site-packages/rpyc/core/protocol.py\", line 344, in _recv\r\n    if self._channel.poll(timeout):\r\n  File \"python2.7/site-packages/rpyc/core/channel.py\", line 43, in poll\r\n    return self.stream.poll(timeout)\r\n  File \"pupy/network/lib/streams/PupySocketStream.py\", line 74, in poll\r\n    return len(self.upstream)>0 or self.sock_poll(timeout)\r\n  File \"pupy/network/lib/streams/PupySocketStream.py\", line 79, in sock_poll\r\n    self._read()\r\n  File \"pupy/network/lib/streams/PupySocketStream.py\", line 58, in _read\r\n    buf = self.sock.recv(self.MAX_IO_CHUNK)\r\n  File \"python2.7/site-packages/rpyc/core/stream.py\", line 76, in __getattr__\r\n    raise EOFError(\"stream has been closed\")\r\nEOFError: stream has been closed\r\n```\r\nconnection silently dies and client doesn't call back any more. But it stays alive in memory. "},"comment":{"url":"https://api.github.com/repos/n1nj4sec/pupy/issues/comments/242464964","html_url":"https://github.com/n1nj4sec/pupy/issues/163#issuecomment-242464964","issue_url":"https://api.github.com/repos/n1nj4sec/pupy/issues/163","id":242464964,"user":{"login":"n1nj4sec","id":12549318,"avatar_url":"https://avatars.githubusercontent.com/u/12549318?v=3","gravatar_id":"","url":"https://api.github.com/users/n1nj4sec","html_url":"https://github.com/n1nj4sec","followers_url":"https://api.github.com/users/n1nj4sec/followers","following_url":"https://api.github.com/users/n1nj4sec/following{/other_user}","gists_url":"https://api.github.com/users/n1nj4sec/gists{/gist_id}","starred_url":"https://api.github.com/users/n1nj4sec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n1nj4sec/subscriptions","organizations_url":"https://api.github.com/users/n1nj4sec/orgs","repos_url":"https://api.github.com/users/n1nj4sec/repos","events_url":"https://api.github.com/users/n1nj4sec/events{/privacy}","received_events_url":"https://api.github.com/users/n1nj4sec/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T17:03:17Z","updated_at":"2016-08-25T17:03:17Z","body":"There is no ^Z yet, but you can use run --bg yourmodule to make it run as a job"}}
{"actor":{"display_login":"n1nj4sec"}}