{"action":"opened","number":6,"pull_request":{"url":"https://api.github.com/repos/gilt/s3-sftp-bridge/pulls/6","id":91315353,"html_url":"https://github.com/gilt/s3-sftp-bridge/pull/6","diff_url":"https://github.com/gilt/s3-sftp-bridge/pull/6.diff","patch_url":"https://github.com/gilt/s3-sftp-bridge/pull/6.patch","issue_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/issues/6","number":6,"state":"open","locked":false,"title":"Call readAsync multiple times, until entire file is read","user":{"login":"amcinnes","id":1313734,"avatar_url":"https://avatars.githubusercontent.com/u/1313734?v=3","gravatar_id":"","url":"https://api.github.com/users/amcinnes","html_url":"https://github.com/amcinnes","followers_url":"https://api.github.com/users/amcinnes/followers","following_url":"https://api.github.com/users/amcinnes/following{/other_user}","gists_url":"https://api.github.com/users/amcinnes/gists{/gist_id}","starred_url":"https://api.github.com/users/amcinnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amcinnes/subscriptions","organizations_url":"https://api.github.com/users/amcinnes/orgs","repos_url":"https://api.github.com/users/amcinnes/repos","events_url":"https://api.github.com/users/amcinnes/events{/privacy}","received_events_url":"https://api.github.com/users/amcinnes/received_events","type":"User","site_admin":false},"body":"It's not guaranteed to return the entire file contents in a single call -- the size you pass to readAsync is a maximum, and the server can choose to return less than the requested amount.\r\n\r\nSo with some types of servers, without this fix, copying a large file can result in getting a file that has a chunk of correct data at the start and the rest is just zeros.","created_at":"2016-10-28T03:05:18Z","updated_at":"2016-10-28T03:05:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/pulls/6/commits","review_comments_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/pulls/6/comments","review_comment_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/issues/6/comments","statuses_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/statuses/06239a006345d057ca46fa687f25ce371522a98b","head":{"label":"amcinnes:fix-readasync","ref":"fix-readasync","sha":"06239a006345d057ca46fa687f25ce371522a98b","user":{"login":"amcinnes","id":1313734,"avatar_url":"https://avatars.githubusercontent.com/u/1313734?v=3","gravatar_id":"","url":"https://api.github.com/users/amcinnes","html_url":"https://github.com/amcinnes","followers_url":"https://api.github.com/users/amcinnes/followers","following_url":"https://api.github.com/users/amcinnes/following{/other_user}","gists_url":"https://api.github.com/users/amcinnes/gists{/gist_id}","starred_url":"https://api.github.com/users/amcinnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amcinnes/subscriptions","organizations_url":"https://api.github.com/users/amcinnes/orgs","repos_url":"https://api.github.com/users/amcinnes/repos","events_url":"https://api.github.com/users/amcinnes/events{/privacy}","received_events_url":"https://api.github.com/users/amcinnes/received_events","type":"User","site_admin":false},"repo":{"id":71525587,"name":"s3-sftp-bridge","full_name":"amcinnes/s3-sftp-bridge","owner":{"login":"amcinnes","id":1313734,"avatar_url":"https://avatars.githubusercontent.com/u/1313734?v=3","gravatar_id":"","url":"https://api.github.com/users/amcinnes","html_url":"https://github.com/amcinnes","followers_url":"https://api.github.com/users/amcinnes/followers","following_url":"https://api.github.com/users/amcinnes/following{/other_user}","gists_url":"https://api.github.com/users/amcinnes/gists{/gist_id}","starred_url":"https://api.github.com/users/amcinnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amcinnes/subscriptions","organizations_url":"https://api.github.com/users/amcinnes/orgs","repos_url":"https://api.github.com/users/amcinnes/repos","events_url":"https://api.github.com/users/amcinnes/events{/privacy}","received_events_url":"https://api.github.com/users/amcinnes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amcinnes/s3-sftp-bridge","description":"Syncs files between Amazon S3 and FTP servers","fork":true,"url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge","forks_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/forks","keys_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/teams","hooks_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/hooks","issue_events_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/issues/events{/number}","events_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/events","assignees_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/assignees{/user}","branches_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/branches{/branch}","tags_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/tags","blobs_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/git/refs{/sha}","trees_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/statuses/{sha}","languages_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/languages","stargazers_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/stargazers","contributors_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/contributors","subscribers_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/subscribers","subscription_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/subscription","commits_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/commits{/sha}","git_commits_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/git/commits{/sha}","comments_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/comments{/number}","issue_comment_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/issues/comments{/number}","contents_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/contents/{+path}","compare_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/merges","archive_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/downloads","issues_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/issues{/number}","pulls_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/pulls{/number}","milestones_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/milestones{/number}","notifications_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/labels{/name}","releases_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/releases{/id}","deployments_url":"https://api.github.com/repos/amcinnes/s3-sftp-bridge/deployments","created_at":"2016-10-21T03:16:34Z","updated_at":"2016-10-21T03:16:35Z","pushed_at":"2016-10-28T02:49:47Z","git_url":"git://github.com/amcinnes/s3-sftp-bridge.git","ssh_url":"git@github.com:amcinnes/s3-sftp-bridge.git","clone_url":"https://github.com/amcinnes/s3-sftp-bridge.git","svn_url":"https://github.com/amcinnes/s3-sftp-bridge","homepage":null,"size":37,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gilt:master","ref":"master","sha":"6286462cffb9158457910b36cdf0ac87c95b7db7","user":{"login":"gilt","id":160415,"avatar_url":"https://avatars.githubusercontent.com/u/160415?v=3","gravatar_id":"","url":"https://api.github.com/users/gilt","html_url":"https://github.com/gilt","followers_url":"https://api.github.com/users/gilt/followers","following_url":"https://api.github.com/users/gilt/following{/other_user}","gists_url":"https://api.github.com/users/gilt/gists{/gist_id}","starred_url":"https://api.github.com/users/gilt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gilt/subscriptions","organizations_url":"https://api.github.com/users/gilt/orgs","repos_url":"https://api.github.com/users/gilt/repos","events_url":"https://api.github.com/users/gilt/events{/privacy}","received_events_url":"https://api.github.com/users/gilt/received_events","type":"Organization","site_admin":false},"repo":{"id":55640346,"name":"s3-sftp-bridge","full_name":"gilt/s3-sftp-bridge","owner":{"login":"gilt","id":160415,"avatar_url":"https://avatars.githubusercontent.com/u/160415?v=3","gravatar_id":"","url":"https://api.github.com/users/gilt","html_url":"https://github.com/gilt","followers_url":"https://api.github.com/users/gilt/followers","following_url":"https://api.github.com/users/gilt/following{/other_user}","gists_url":"https://api.github.com/users/gilt/gists{/gist_id}","starred_url":"https://api.github.com/users/gilt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gilt/subscriptions","organizations_url":"https://api.github.com/users/gilt/orgs","repos_url":"https://api.github.com/users/gilt/repos","events_url":"https://api.github.com/users/gilt/events{/privacy}","received_events_url":"https://api.github.com/users/gilt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gilt/s3-sftp-bridge","description":"Syncs files between Amazon S3 and FTP servers","fork":false,"url":"https://api.github.com/repos/gilt/s3-sftp-bridge","forks_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/forks","keys_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/teams","hooks_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/hooks","issue_events_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/issues/events{/number}","events_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/events","assignees_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/assignees{/user}","branches_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/branches{/branch}","tags_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/tags","blobs_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/git/refs{/sha}","trees_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/statuses/{sha}","languages_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/languages","stargazers_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/stargazers","contributors_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/contributors","subscribers_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/subscribers","subscription_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/subscription","commits_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/commits{/sha}","git_commits_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/git/commits{/sha}","comments_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/comments{/number}","issue_comment_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/issues/comments{/number}","contents_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/contents/{+path}","compare_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/merges","archive_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/downloads","issues_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/issues{/number}","pulls_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/pulls{/number}","milestones_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/milestones{/number}","notifications_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/labels{/name}","releases_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/releases{/id}","deployments_url":"https://api.github.com/repos/gilt/s3-sftp-bridge/deployments","created_at":"2016-04-06T21:02:53Z","updated_at":"2016-10-20T08:19:03Z","pushed_at":"2016-10-21T05:14:18Z","git_url":"git://github.com/gilt/s3-sftp-bridge.git","ssh_url":"git@github.com:gilt/s3-sftp-bridge.git","clone_url":"https://github.com/gilt/s3-sftp-bridge.git","svn_url":"https://github.com/gilt/s3-sftp-bridge","homepage":null,"size":39,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":4,"forks":6,"open_issues":4,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gilt/s3-sftp-bridge/pulls/6"},"html":{"href":"https://github.com/gilt/s3-sftp-bridge/pull/6"},"issue":{"href":"https://api.github.com/repos/gilt/s3-sftp-bridge/issues/6"},"comments":{"href":"https://api.github.com/repos/gilt/s3-sftp-bridge/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/gilt/s3-sftp-bridge/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/gilt/s3-sftp-bridge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gilt/s3-sftp-bridge/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/gilt/s3-sftp-bridge/statuses/06239a006345d057ca46fa687f25ce371522a98b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":13,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"amcinnes"}}