{"action":"opened","number":144,"pull_request":{"url":"https://api.github.com/repos/Samsung/iotjs/pulls/144","id":41002301,"html_url":"https://github.com/Samsung/iotjs/pull/144","diff_url":"https://github.com/Samsung/iotjs/pull/144.diff","patch_url":"https://github.com/Samsung/iotjs/pull/144.patch","issue_url":"https://api.github.com/repos/Samsung/iotjs/issues/144","number":144,"state":"open","locked":false,"title":"Emitting end and finish event of duplex stream more properly","user":{"login":"ILyoan","id":2672194,"avatar_url":"https://avatars.githubusercontent.com/u/2672194?v=3","gravatar_id":"","url":"https://api.github.com/users/ILyoan","html_url":"https://github.com/ILyoan","followers_url":"https://api.github.com/users/ILyoan/followers","following_url":"https://api.github.com/users/ILyoan/following{/other_user}","gists_url":"https://api.github.com/users/ILyoan/gists{/gist_id}","starred_url":"https://api.github.com/users/ILyoan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ILyoan/subscriptions","organizations_url":"https://api.github.com/users/ILyoan/orgs","repos_url":"https://api.github.com/users/ILyoan/repos","events_url":"https://api.github.com/users/ILyoan/events{/privacy}","received_events_url":"https://api.github.com/users/ILyoan/received_events","type":"User","site_admin":false},"body":"This commit fixes two problems\r\n\r\n1. In some situation 'end' event was not emitted from the first place.\r\n2. In some situation 'end` event was lost because the socket closed before triggering 'end' listener.","created_at":"2015-07-28T11:46:03Z","updated_at":"2015-07-28T11:46:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Samsung/iotjs/pulls/144/commits","review_comments_url":"https://api.github.com/repos/Samsung/iotjs/pulls/144/comments","review_comment_url":"https://api.github.com/repos/Samsung/iotjs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Samsung/iotjs/issues/144/comments","statuses_url":"https://api.github.com/repos/Samsung/iotjs/statuses/e8387a7b19a9b06d143afb7850838ccf73601899","head":{"label":"ILyoan:duplex_ending","ref":"duplex_ending","sha":"e8387a7b19a9b06d143afb7850838ccf73601899","user":{"login":"ILyoan","id":2672194,"avatar_url":"https://avatars.githubusercontent.com/u/2672194?v=3","gravatar_id":"","url":"https://api.github.com/users/ILyoan","html_url":"https://github.com/ILyoan","followers_url":"https://api.github.com/users/ILyoan/followers","following_url":"https://api.github.com/users/ILyoan/following{/other_user}","gists_url":"https://api.github.com/users/ILyoan/gists{/gist_id}","starred_url":"https://api.github.com/users/ILyoan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ILyoan/subscriptions","organizations_url":"https://api.github.com/users/ILyoan/orgs","repos_url":"https://api.github.com/users/ILyoan/repos","events_url":"https://api.github.com/users/ILyoan/events{/privacy}","received_events_url":"https://api.github.com/users/ILyoan/received_events","type":"User","site_admin":false},"repo":{"id":38352766,"name":"iotjs","full_name":"ILyoan/iotjs","owner":{"login":"ILyoan","id":2672194,"avatar_url":"https://avatars.githubusercontent.com/u/2672194?v=3","gravatar_id":"","url":"https://api.github.com/users/ILyoan","html_url":"https://github.com/ILyoan","followers_url":"https://api.github.com/users/ILyoan/followers","following_url":"https://api.github.com/users/ILyoan/following{/other_user}","gists_url":"https://api.github.com/users/ILyoan/gists{/gist_id}","starred_url":"https://api.github.com/users/ILyoan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ILyoan/subscriptions","organizations_url":"https://api.github.com/users/ILyoan/orgs","repos_url":"https://api.github.com/users/ILyoan/repos","events_url":"https://api.github.com/users/ILyoan/events{/privacy}","received_events_url":"https://api.github.com/users/ILyoan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ILyoan/iotjs","description":"Platform for Internet of Things with JavaScript","fork":true,"url":"https://api.github.com/repos/ILyoan/iotjs","forks_url":"https://api.github.com/repos/ILyoan/iotjs/forks","keys_url":"https://api.github.com/repos/ILyoan/iotjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ILyoan/iotjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ILyoan/iotjs/teams","hooks_url":"https://api.github.com/repos/ILyoan/iotjs/hooks","issue_events_url":"https://api.github.com/repos/ILyoan/iotjs/issues/events{/number}","events_url":"https://api.github.com/repos/ILyoan/iotjs/events","assignees_url":"https://api.github.com/repos/ILyoan/iotjs/assignees{/user}","branches_url":"https://api.github.com/repos/ILyoan/iotjs/branches{/branch}","tags_url":"https://api.github.com/repos/ILyoan/iotjs/tags","blobs_url":"https://api.github.com/repos/ILyoan/iotjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ILyoan/iotjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ILyoan/iotjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ILyoan/iotjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ILyoan/iotjs/statuses/{sha}","languages_url":"https://api.github.com/repos/ILyoan/iotjs/languages","stargazers_url":"https://api.github.com/repos/ILyoan/iotjs/stargazers","contributors_url":"https://api.github.com/repos/ILyoan/iotjs/contributors","subscribers_url":"https://api.github.com/repos/ILyoan/iotjs/subscribers","subscription_url":"https://api.github.com/repos/ILyoan/iotjs/subscription","commits_url":"https://api.github.com/repos/ILyoan/iotjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ILyoan/iotjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ILyoan/iotjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ILyoan/iotjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ILyoan/iotjs/contents/{+path}","compare_url":"https://api.github.com/repos/ILyoan/iotjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ILyoan/iotjs/merges","archive_url":"https://api.github.com/repos/ILyoan/iotjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ILyoan/iotjs/downloads","issues_url":"https://api.github.com/repos/ILyoan/iotjs/issues{/number}","pulls_url":"https://api.github.com/repos/ILyoan/iotjs/pulls{/number}","milestones_url":"https://api.github.com/repos/ILyoan/iotjs/milestones{/number}","notifications_url":"https://api.github.com/repos/ILyoan/iotjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ILyoan/iotjs/labels{/name}","releases_url":"https://api.github.com/repos/ILyoan/iotjs/releases{/id}","created_at":"2015-07-01T06:03:46Z","updated_at":"2015-07-01T06:03:47Z","pushed_at":"2015-07-28T11:42:14Z","git_url":"git://github.com/ILyoan/iotjs.git","ssh_url":"git@github.com:ILyoan/iotjs.git","clone_url":"https://github.com/ILyoan/iotjs.git","svn_url":"https://github.com/ILyoan/iotjs","homepage":"http://www.iotjs.net","size":1332,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Samsung:master","ref":"master","sha":"6aeba435bb7036ca7a92cd550849f93c559b8742","user":{"login":"Samsung","id":6210390,"avatar_url":"https://avatars.githubusercontent.com/u/6210390?v=3","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"repo":{"id":33589470,"name":"iotjs","full_name":"Samsung/iotjs","owner":{"login":"Samsung","id":6210390,"avatar_url":"https://avatars.githubusercontent.com/u/6210390?v=3","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Samsung/iotjs","description":"Platform for Internet of Things with JavaScript","fork":false,"url":"https://api.github.com/repos/Samsung/iotjs","forks_url":"https://api.github.com/repos/Samsung/iotjs/forks","keys_url":"https://api.github.com/repos/Samsung/iotjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Samsung/iotjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Samsung/iotjs/teams","hooks_url":"https://api.github.com/repos/Samsung/iotjs/hooks","issue_events_url":"https://api.github.com/repos/Samsung/iotjs/issues/events{/number}","events_url":"https://api.github.com/repos/Samsung/iotjs/events","assignees_url":"https://api.github.com/repos/Samsung/iotjs/assignees{/user}","branches_url":"https://api.github.com/repos/Samsung/iotjs/branches{/branch}","tags_url":"https://api.github.com/repos/Samsung/iotjs/tags","blobs_url":"https://api.github.com/repos/Samsung/iotjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Samsung/iotjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Samsung/iotjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/Samsung/iotjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Samsung/iotjs/statuses/{sha}","languages_url":"https://api.github.com/repos/Samsung/iotjs/languages","stargazers_url":"https://api.github.com/repos/Samsung/iotjs/stargazers","contributors_url":"https://api.github.com/repos/Samsung/iotjs/contributors","subscribers_url":"https://api.github.com/repos/Samsung/iotjs/subscribers","subscription_url":"https://api.github.com/repos/Samsung/iotjs/subscription","commits_url":"https://api.github.com/repos/Samsung/iotjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/Samsung/iotjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/Samsung/iotjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/Samsung/iotjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/Samsung/iotjs/contents/{+path}","compare_url":"https://api.github.com/repos/Samsung/iotjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Samsung/iotjs/merges","archive_url":"https://api.github.com/repos/Samsung/iotjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Samsung/iotjs/downloads","issues_url":"https://api.github.com/repos/Samsung/iotjs/issues{/number}","pulls_url":"https://api.github.com/repos/Samsung/iotjs/pulls{/number}","milestones_url":"https://api.github.com/repos/Samsung/iotjs/milestones{/number}","notifications_url":"https://api.github.com/repos/Samsung/iotjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Samsung/iotjs/labels{/name}","releases_url":"https://api.github.com/repos/Samsung/iotjs/releases{/id}","created_at":"2015-04-08T06:41:39Z","updated_at":"2015-07-28T09:49:50Z","pushed_at":"2015-07-28T07:02:15Z","git_url":"git://github.com/Samsung/iotjs.git","ssh_url":"git@github.com:Samsung/iotjs.git","clone_url":"https://github.com/Samsung/iotjs.git","svn_url":"https://github.com/Samsung/iotjs","homepage":"http://www.iotjs.net","size":2932,"stargazers_count":312,"watchers_count":312,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":22,"mirror_url":null,"open_issues_count":31,"forks":22,"open_issues":31,"watchers":312,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Samsung/iotjs/pulls/144"},"html":{"href":"https://github.com/Samsung/iotjs/pull/144"},"issue":{"href":"https://api.github.com/repos/Samsung/iotjs/issues/144"},"comments":{"href":"https://api.github.com/repos/Samsung/iotjs/issues/144/comments"},"review_comments":{"href":"https://api.github.com/repos/Samsung/iotjs/pulls/144/comments"},"review_comment":{"href":"https://api.github.com/repos/Samsung/iotjs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Samsung/iotjs/pulls/144/commits"},"statuses":{"href":"https://api.github.com/repos/Samsung/iotjs/statuses/e8387a7b19a9b06d143afb7850838ccf73601899"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":16,"deletions":6,"changed_files":3}}