{"action":"created","comment":{"url":"https://api.github.com/repos/jstarks/npiperelay/pulls/comments/235562028","pull_request_review_id":177456662,"id":235562028,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTU2MjAyOA==","diff_hunk":"@@ -59,9 +97,73 @@ func main() {\n \t\tlog.Println(\"connecting to\", args[0])\n \t}\n \n-\tconn, err := dialPipe(args[0], *poll)\n-\tif err != nil {\n-\t\tlog.Fatalln(err)\n+\tvar conn *overlappedFile\n+\tvar err error\n+\n+\t// Loop only if we're polling the named pipe or socket\n+\tfor {\n+\t\tconn, err = dialPipe(args[0], *poll)\n+\n+\t\tif *poll && os.IsNotExist(err) {\n+\t\t\ttime.Sleep(200 * time.Millisecond)\n+\t\t\tcontinue\n+\t\t}\n+\n+\t\tif err != nil {\n+\t\t\terr = &os.PathError{Path: args[0], Op: \"open\", Err: err}\n+\t\t\tlog.Fatalln(err)\n+\t\t}\n+\n+\t\t// LibAssaaun file socket: Attempt to read contents of the target file and connect to a TCP port\n+\t\tif *assuan {","path":"npiperelay.go","position":115,"original_position":115,"commit_id":"b7795c8bf6897d17962d70f8c2e0424af7a112c2","original_commit_id":"b7795c8bf6897d17962d70f8c2e0424af7a112c2","user":{"login":"jstarks","id":9548354,"node_id":"MDQ6VXNlcjk1NDgzNTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/9548354?v=4","gravatar_id":"","url":"https://api.github.com/users/jstarks","html_url":"https://github.com/jstarks","followers_url":"https://api.github.com/users/jstarks/followers","following_url":"https://api.github.com/users/jstarks/following{/other_user}","gists_url":"https://api.github.com/users/jstarks/gists{/gist_id}","starred_url":"https://api.github.com/users/jstarks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstarks/subscriptions","organizations_url":"https://api.github.com/users/jstarks/orgs","repos_url":"https://api.github.com/users/jstarks/repos","events_url":"https://api.github.com/users/jstarks/events{/privacy}","received_events_url":"https://api.github.com/users/jstarks/received_events","type":"User","site_admin":false},"body":"I would prefer that the existing pipe path stay the same as it was (don't change `dialPipe`) and that this path be a separate branch, maybe a separate function `dialAssuan`.","created_at":"2018-11-21T23:03:43Z","updated_at":"2018-11-21T23:03:49Z","html_url":"https://github.com/jstarks/npiperelay/pull/2#discussion_r235562028","pull_request_url":"https://api.github.com/repos/jstarks/npiperelay/pulls/2","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/jstarks/npiperelay/pulls/comments/235562028"},"html":{"href":"https://github.com/jstarks/npiperelay/pull/2#discussion_r235562028"},"pull_request":{"href":"https://api.github.com/repos/jstarks/npiperelay/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/jstarks/npiperelay/pulls/2","id":160342277,"node_id":"MDExOlB1bGxSZXF1ZXN0MTYwMzQyMjc3","html_url":"https://github.com/jstarks/npiperelay/pull/2","diff_url":"https://github.com/jstarks/npiperelay/pull/2.diff","patch_url":"https://github.com/jstarks/npiperelay/pull/2.patch","issue_url":"https://api.github.com/repos/jstarks/npiperelay/issues/2","number":2,"state":"open","locked":false,"title":"Add support for libassuan file sockets (WinGnuPG support)","user":{"login":"NZSmartie","id":1032029,"node_id":"MDQ6VXNlcjEwMzIwMjk=","avatar_url":"https://avatars1.githubusercontent.com/u/1032029?v=4","gravatar_id":"","url":"https://api.github.com/users/NZSmartie","html_url":"https://github.com/NZSmartie","followers_url":"https://api.github.com/users/NZSmartie/followers","following_url":"https://api.github.com/users/NZSmartie/following{/other_user}","gists_url":"https://api.github.com/users/NZSmartie/gists{/gist_id}","starred_url":"https://api.github.com/users/NZSmartie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NZSmartie/subscriptions","organizations_url":"https://api.github.com/users/NZSmartie/orgs","repos_url":"https://api.github.com/users/NZSmartie/repos","events_url":"https://api.github.com/users/NZSmartie/events{/privacy}","received_events_url":"https://api.github.com/users/NZSmartie/received_events","type":"User","site_admin":false},"body":"This closes #1. See that issue for details on this pull request.\r\n\r\nSome housekeeping is needed though. Although I create a overlapped socket handle, i don't check all edge cases of it failing. will need to tidy that up","created_at":"2017-12-28T06:51:04Z","updated_at":"2018-11-21T23:03:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8d7164b0e4f83aa525c1a1e236be13d438ca22f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jstarks/npiperelay/pulls/2/commits","review_comments_url":"https://api.github.com/repos/jstarks/npiperelay/pulls/2/comments","review_comment_url":"https://api.github.com/repos/jstarks/npiperelay/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jstarks/npiperelay/issues/2/comments","statuses_url":"https://api.github.com/repos/jstarks/npiperelay/statuses/b7795c8bf6897d17962d70f8c2e0424af7a112c2","head":{"label":"NZSmartie:master","ref":"master","sha":"b7795c8bf6897d17962d70f8c2e0424af7a112c2","user":{"login":"NZSmartie","id":1032029,"node_id":"MDQ6VXNlcjEwMzIwMjk=","avatar_url":"https://avatars1.githubusercontent.com/u/1032029?v=4","gravatar_id":"","url":"https://api.github.com/users/NZSmartie","html_url":"https://github.com/NZSmartie","followers_url":"https://api.github.com/users/NZSmartie/followers","following_url":"https://api.github.com/users/NZSmartie/following{/other_user}","gists_url":"https://api.github.com/users/NZSmartie/gists{/gist_id}","starred_url":"https://api.github.com/users/NZSmartie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NZSmartie/subscriptions","organizations_url":"https://api.github.com/users/NZSmartie/orgs","repos_url":"https://api.github.com/users/NZSmartie/repos","events_url":"https://api.github.com/users/NZSmartie/events{/privacy}","received_events_url":"https://api.github.com/users/NZSmartie/received_events","type":"User","site_admin":false},"repo":{"id":115592934,"node_id":"MDEwOlJlcG9zaXRvcnkxMTU1OTI5MzQ=","name":"npiperelay","full_name":"NZSmartie/npiperelay","private":false,"owner":{"login":"NZSmartie","id":1032029,"node_id":"MDQ6VXNlcjEwMzIwMjk=","avatar_url":"https://avatars1.githubusercontent.com/u/1032029?v=4","gravatar_id":"","url":"https://api.github.com/users/NZSmartie","html_url":"https://github.com/NZSmartie","followers_url":"https://api.github.com/users/NZSmartie/followers","following_url":"https://api.github.com/users/NZSmartie/following{/other_user}","gists_url":"https://api.github.com/users/NZSmartie/gists{/gist_id}","starred_url":"https://api.github.com/users/NZSmartie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NZSmartie/subscriptions","organizations_url":"https://api.github.com/users/NZSmartie/orgs","repos_url":"https://api.github.com/users/NZSmartie/repos","events_url":"https://api.github.com/users/NZSmartie/events{/privacy}","received_events_url":"https://api.github.com/users/NZSmartie/received_events","type":"User","site_admin":false},"html_url":"https://github.com/NZSmartie/npiperelay","description":"npiperelay allows you to access Windows named pipes from WSL","fork":true,"url":"https://api.github.com/repos/NZSmartie/npiperelay","forks_url":"https://api.github.com/repos/NZSmartie/npiperelay/forks","keys_url":"https://api.github.com/repos/NZSmartie/npiperelay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NZSmartie/npiperelay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NZSmartie/npiperelay/teams","hooks_url":"https://api.github.com/repos/NZSmartie/npiperelay/hooks","issue_events_url":"https://api.github.com/repos/NZSmartie/npiperelay/issues/events{/number}","events_url":"https://api.github.com/repos/NZSmartie/npiperelay/events","assignees_url":"https://api.github.com/repos/NZSmartie/npiperelay/assignees{/user}","branches_url":"https://api.github.com/repos/NZSmartie/npiperelay/branches{/branch}","tags_url":"https://api.github.com/repos/NZSmartie/npiperelay/tags","blobs_url":"https://api.github.com/repos/NZSmartie/npiperelay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NZSmartie/npiperelay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NZSmartie/npiperelay/git/refs{/sha}","trees_url":"https://api.github.com/repos/NZSmartie/npiperelay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NZSmartie/npiperelay/statuses/{sha}","languages_url":"https://api.github.com/repos/NZSmartie/npiperelay/languages","stargazers_url":"https://api.github.com/repos/NZSmartie/npiperelay/stargazers","contributors_url":"https://api.github.com/repos/NZSmartie/npiperelay/contributors","subscribers_url":"https://api.github.com/repos/NZSmartie/npiperelay/subscribers","subscription_url":"https://api.github.com/repos/NZSmartie/npiperelay/subscription","commits_url":"https://api.github.com/repos/NZSmartie/npiperelay/commits{/sha}","git_commits_url":"https://api.github.com/repos/NZSmartie/npiperelay/git/commits{/sha}","comments_url":"https://api.github.com/repos/NZSmartie/npiperelay/comments{/number}","issue_comment_url":"https://api.github.com/repos/NZSmartie/npiperelay/issues/comments{/number}","contents_url":"https://api.github.com/repos/NZSmartie/npiperelay/contents/{+path}","compare_url":"https://api.github.com/repos/NZSmartie/npiperelay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NZSmartie/npiperelay/merges","archive_url":"https://api.github.com/repos/NZSmartie/npiperelay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NZSmartie/npiperelay/downloads","issues_url":"https://api.github.com/repos/NZSmartie/npiperelay/issues{/number}","pulls_url":"https://api.github.com/repos/NZSmartie/npiperelay/pulls{/number}","milestones_url":"https://api.github.com/repos/NZSmartie/npiperelay/milestones{/number}","notifications_url":"https://api.github.com/repos/NZSmartie/npiperelay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NZSmartie/npiperelay/labels{/name}","releases_url":"https://api.github.com/repos/NZSmartie/npiperelay/releases{/id}","deployments_url":"https://api.github.com/repos/NZSmartie/npiperelay/deployments","created_at":"2017-12-28T06:30:58Z","updated_at":"2018-03-08T09:42:55Z","pushed_at":"2018-01-16T07:35:44Z","git_url":"git://github.com/NZSmartie/npiperelay.git","ssh_url":"git@github.com:NZSmartie/npiperelay.git","clone_url":"https://github.com/NZSmartie/npiperelay.git","svn_url":"https://github.com/NZSmartie/npiperelay","homepage":"","size":15,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"jstarks:master","ref":"master","sha":"07558866abcad93e6b96cb77670427f8593e060b","user":{"login":"jstarks","id":9548354,"node_id":"MDQ6VXNlcjk1NDgzNTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/9548354?v=4","gravatar_id":"","url":"https://api.github.com/users/jstarks","html_url":"https://github.com/jstarks","followers_url":"https://api.github.com/users/jstarks/followers","following_url":"https://api.github.com/users/jstarks/following{/other_user}","gists_url":"https://api.github.com/users/jstarks/gists{/gist_id}","starred_url":"https://api.github.com/users/jstarks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstarks/subscriptions","organizations_url":"https://api.github.com/users/jstarks/orgs","repos_url":"https://api.github.com/users/jstarks/repos","events_url":"https://api.github.com/users/jstarks/events{/privacy}","received_events_url":"https://api.github.com/users/jstarks/received_events","type":"User","site_admin":false},"repo":{"id":102973864,"node_id":"MDEwOlJlcG9zaXRvcnkxMDI5NzM4NjQ=","name":"npiperelay","full_name":"jstarks/npiperelay","private":false,"owner":{"login":"jstarks","id":9548354,"node_id":"MDQ6VXNlcjk1NDgzNTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/9548354?v=4","gravatar_id":"","url":"https://api.github.com/users/jstarks","html_url":"https://github.com/jstarks","followers_url":"https://api.github.com/users/jstarks/followers","following_url":"https://api.github.com/users/jstarks/following{/other_user}","gists_url":"https://api.github.com/users/jstarks/gists{/gist_id}","starred_url":"https://api.github.com/users/jstarks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstarks/subscriptions","organizations_url":"https://api.github.com/users/jstarks/orgs","repos_url":"https://api.github.com/users/jstarks/repos","events_url":"https://api.github.com/users/jstarks/events{/privacy}","received_events_url":"https://api.github.com/users/jstarks/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jstarks/npiperelay","description":"npiperelay allows you to access Windows named pipes from WSL","fork":false,"url":"https://api.github.com/repos/jstarks/npiperelay","forks_url":"https://api.github.com/repos/jstarks/npiperelay/forks","keys_url":"https://api.github.com/repos/jstarks/npiperelay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jstarks/npiperelay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jstarks/npiperelay/teams","hooks_url":"https://api.github.com/repos/jstarks/npiperelay/hooks","issue_events_url":"https://api.github.com/repos/jstarks/npiperelay/issues/events{/number}","events_url":"https://api.github.com/repos/jstarks/npiperelay/events","assignees_url":"https://api.github.com/repos/jstarks/npiperelay/assignees{/user}","branches_url":"https://api.github.com/repos/jstarks/npiperelay/branches{/branch}","tags_url":"https://api.github.com/repos/jstarks/npiperelay/tags","blobs_url":"https://api.github.com/repos/jstarks/npiperelay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jstarks/npiperelay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jstarks/npiperelay/git/refs{/sha}","trees_url":"https://api.github.com/repos/jstarks/npiperelay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jstarks/npiperelay/statuses/{sha}","languages_url":"https://api.github.com/repos/jstarks/npiperelay/languages","stargazers_url":"https://api.github.com/repos/jstarks/npiperelay/stargazers","contributors_url":"https://api.github.com/repos/jstarks/npiperelay/contributors","subscribers_url":"https://api.github.com/repos/jstarks/npiperelay/subscribers","subscription_url":"https://api.github.com/repos/jstarks/npiperelay/subscription","commits_url":"https://api.github.com/repos/jstarks/npiperelay/commits{/sha}","git_commits_url":"https://api.github.com/repos/jstarks/npiperelay/git/commits{/sha}","comments_url":"https://api.github.com/repos/jstarks/npiperelay/comments{/number}","issue_comment_url":"https://api.github.com/repos/jstarks/npiperelay/issues/comments{/number}","contents_url":"https://api.github.com/repos/jstarks/npiperelay/contents/{+path}","compare_url":"https://api.github.com/repos/jstarks/npiperelay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jstarks/npiperelay/merges","archive_url":"https://api.github.com/repos/jstarks/npiperelay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jstarks/npiperelay/downloads","issues_url":"https://api.github.com/repos/jstarks/npiperelay/issues{/number}","pulls_url":"https://api.github.com/repos/jstarks/npiperelay/pulls{/number}","milestones_url":"https://api.github.com/repos/jstarks/npiperelay/milestones{/number}","notifications_url":"https://api.github.com/repos/jstarks/npiperelay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jstarks/npiperelay/labels{/name}","releases_url":"https://api.github.com/repos/jstarks/npiperelay/releases{/id}","deployments_url":"https://api.github.com/repos/jstarks/npiperelay/deployments","created_at":"2017-09-09T17:47:14Z","updated_at":"2018-11-20T10:27:57Z","pushed_at":"2018-09-23T03:52:29Z","git_url":"git://github.com/jstarks/npiperelay.git","ssh_url":"git@github.com:jstarks/npiperelay.git","clone_url":"https://github.com/jstarks/npiperelay.git","svn_url":"https://github.com/jstarks/npiperelay","homepage":"","size":7,"stargazers_count":83,"watchers_count":83,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":7,"open_issues":5,"watchers":83,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jstarks/npiperelay/pulls/2"},"html":{"href":"https://github.com/jstarks/npiperelay/pull/2"},"issue":{"href":"https://api.github.com/repos/jstarks/npiperelay/issues/2"},"comments":{"href":"https://api.github.com/repos/jstarks/npiperelay/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/jstarks/npiperelay/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/jstarks/npiperelay/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jstarks/npiperelay/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/jstarks/npiperelay/statuses/b7795c8bf6897d17962d70f8c2e0424af7a112c2"}},"author_association":"NONE"}}
{"actor":{"display_login":"jstarks"}}