{"action":"created","issue":{"url":"https://api.github.com/repos/ParallelSSH/parallel-ssh/issues/102","repository_url":"https://api.github.com/repos/ParallelSSH/parallel-ssh","labels_url":"https://api.github.com/repos/ParallelSSH/parallel-ssh/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/ParallelSSH/parallel-ssh/issues/102/comments","events_url":"https://api.github.com/repos/ParallelSSH/parallel-ssh/issues/102/events","html_url":"https://github.com/ParallelSSH/parallel-ssh/issues/102","id":296532990,"number":102,"title":"run_command on pssh.pssh2_client - new \"timeout\" option does not seem work ","user":{"login":"parisnps","id":25857062,"avatar_url":"https://avatars2.githubusercontent.com/u/25857062?v=4","gravatar_id":"","url":"https://api.github.com/users/parisnps","html_url":"https://github.com/parisnps","followers_url":"https://api.github.com/users/parisnps/followers","following_url":"https://api.github.com/users/parisnps/following{/other_user}","gists_url":"https://api.github.com/users/parisnps/gists{/gist_id}","starred_url":"https://api.github.com/users/parisnps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parisnps/subscriptions","organizations_url":"https://api.github.com/users/parisnps/orgs","repos_url":"https://api.github.com/users/parisnps/repos","events_url":"https://api.github.com/users/parisnps/events{/privacy}","received_events_url":"https://api.github.com/users/parisnps/received_events","type":"User","site_admin":false},"labels":[{"id":563003395,"url":"https://api.github.com/repos/ParallelSSH/parallel-ssh/labels/needs_more_info","name":"needs_more_info","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-12T21:37:10Z","updated_at":"2018-03-07T15:11:18Z","closed_at":"2018-03-07T15:11:18Z","author_association":"NONE","body":"### First thanks for bringing timeout option to run_command on native ssh with V1.3.2.  However, i dont seem to make it work correctly ? I have hit 2 bugs, first of which is reproduced below ... The second one is for truncated output of large XML file [ I will file a separate bug ]\r\n\r\nHow to reproduce:\r\n------------------------------------------------\r\n\r\n```\r\nfrom pprint import pprint\r\nfrom pssh.pssh2_client import ParallelSSHClient\r\nfrom pssh.utils import load_private_key\r\nfrom collections import defaultdict\r\nimport os, sys\r\nimport time\r\nhosts=['x','y','z']\r\nclient = ParallelSSHClient(hosts)\r\noutput = client.run_command('%s', host_args=('sleep 55;echo \"running pre-timeout\";sleep 55;echo \"running post timeout\"','sleep 55;echo \"running pre-timeout\";sleep 55;echo \"running post timeout\"','sleep 55;echo \"running pre-timeout\";sleep 55;echo \"running post timeout\"'), timeout=60)\r\n\r\nfor host,host_output in output.items():\r\n        print host\r\n        for line in host_output.stdout:\r\n                print line\r\n        for line in host_output.stderr:\r\n                print 'error',line\r\n```\r\n--------------------------------------------------------- \r\n\r\nOutput: The timeout seems to work on only 1 host ? What am I missing ?\r\n---------------------------------------------------------\r\nx\r\nrunning pre-timeout\r\ny\r\nrunning pre-timeout\r\n_**running post timeout**_\r\nz\r\nrunning pre-timeout\r\n_**running post timeout**_\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ParallelSSH/parallel-ssh/issues/comments/371169452","html_url":"https://github.com/ParallelSSH/parallel-ssh/issues/102#issuecomment-371169452","issue_url":"https://api.github.com/repos/ParallelSSH/parallel-ssh/issues/102","id":371169452,"user":{"login":"pkittenis","id":1391208,"avatar_url":"https://avatars1.githubusercontent.com/u/1391208?v=4","gravatar_id":"","url":"https://api.github.com/users/pkittenis","html_url":"https://github.com/pkittenis","followers_url":"https://api.github.com/users/pkittenis/followers","following_url":"https://api.github.com/users/pkittenis/following{/other_user}","gists_url":"https://api.github.com/users/pkittenis/gists{/gist_id}","starred_url":"https://api.github.com/users/pkittenis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkittenis/subscriptions","organizations_url":"https://api.github.com/users/pkittenis/orgs","repos_url":"https://api.github.com/users/pkittenis/repos","events_url":"https://api.github.com/users/pkittenis/events{/privacy}","received_events_url":"https://api.github.com/users/pkittenis/received_events","type":"User","site_admin":false},"created_at":"2018-03-07T15:11:18Z","updated_at":"2018-03-07T15:11:18Z","author_association":"COLLABORATOR","body":"This seems to have been same issue as #104 . Please re-open with steps to reproduce if not."}}
{"actor":{"display_login":"pkittenis"}}