{"action":"created","issue":{"url":"https://api.github.com/repos/masterzen/winrm/issues/26","labels_url":"https://api.github.com/repos/masterzen/winrm/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/masterzen/winrm/issues/26/comments","events_url":"https://api.github.com/repos/masterzen/winrm/issues/26/events","html_url":"https://github.com/masterzen/winrm/pull/26","id":89420547,"number":26,"title":"Fix winrm handling of early connection termination or timeout","user":{"login":"pecigonzalo","id":9908105,"avatar_url":"https://avatars.githubusercontent.com/u/9908105?v=3","gravatar_id":"","url":"https://api.github.com/users/pecigonzalo","html_url":"https://github.com/pecigonzalo","followers_url":"https://api.github.com/users/pecigonzalo/followers","following_url":"https://api.github.com/users/pecigonzalo/following{/other_user}","gists_url":"https://api.github.com/users/pecigonzalo/gists{/gist_id}","starred_url":"https://api.github.com/users/pecigonzalo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pecigonzalo/subscriptions","organizations_url":"https://api.github.com/users/pecigonzalo/orgs","repos_url":"https://api.github.com/users/pecigonzalo/repos","events_url":"https://api.github.com/users/pecigonzalo/events{/privacy}","received_events_url":"https://api.github.com/users/pecigonzalo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-18T23:13:30Z","updated_at":"2015-06-22T08:47:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/masterzen/winrm/pulls/26","html_url":"https://github.com/masterzen/winrm/pull/26","diff_url":"https://github.com/masterzen/winrm/pull/26.diff","patch_url":"https://github.com/masterzen/winrm/pull/26.patch"},"body":"PR https://github.com/masterzen/winrm/pull/25 introduced a bug where winrm will exit with error code 1 even when err is empty and a lot of error codes from further on the line are omitted (shell.Close()).\r\nThis is affecting remote commands as ```net stop winrm``` or ```Stop-Service winrm``` needed when rebooting a host to ensure winrm does not reconnect too soon on a subsecuent command while rebooting.\r\n\r\nThis PR is not complete yet, the intention is to get some help on this code as i add to it, since go is not my primary lang.\r\n\r\nReference:\r\nhttps://github.com/mitchellh/packer/pull/2243\r\nhttps://github.com/packer-community/packer-windows-plugins/issues/54"},"comment":{"url":"https://api.github.com/repos/masterzen/winrm/issues/comments/114042052","html_url":"https://github.com/masterzen/winrm/pull/26#issuecomment-114042052","issue_url":"https://api.github.com/repos/masterzen/winrm/issues/26","id":114042052,"user":{"login":"pecigonzalo","id":9908105,"avatar_url":"https://avatars.githubusercontent.com/u/9908105?v=3","gravatar_id":"","url":"https://api.github.com/users/pecigonzalo","html_url":"https://github.com/pecigonzalo","followers_url":"https://api.github.com/users/pecigonzalo/followers","following_url":"https://api.github.com/users/pecigonzalo/following{/other_user}","gists_url":"https://api.github.com/users/pecigonzalo/gists{/gist_id}","starred_url":"https://api.github.com/users/pecigonzalo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pecigonzalo/subscriptions","organizations_url":"https://api.github.com/users/pecigonzalo/orgs","repos_url":"https://api.github.com/users/pecigonzalo/repos","events_url":"https://api.github.com/users/pecigonzalo/events{/privacy}","received_events_url":"https://api.github.com/users/pecigonzalo/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T08:47:55Z","updated_at":"2015-06-22T08:47:55Z","body":"Thanks for the reply, ill work on those fixes, ill ask you about the particular things i dont know or need more info!"}}