{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/kshlm/pbrpc/pulls/3","id":42688383,"html_url":"https://github.com/kshlm/pbrpc/pull/3","diff_url":"https://github.com/kshlm/pbrpc/pull/3.diff","patch_url":"https://github.com/kshlm/pbrpc/pull/3.patch","issue_url":"https://api.github.com/repos/kshlm/pbrpc/issues/3","number":3,"state":"open","locked":false,"title":"Only call read_cb once enough data is available","user":{"login":"kshlm","id":362086,"avatar_url":"https://avatars.githubusercontent.com/u/362086?v=3","gravatar_id":"","url":"https://api.github.com/users/kshlm","html_url":"https://github.com/kshlm","followers_url":"https://api.github.com/users/kshlm/followers","following_url":"https://api.github.com/users/kshlm/following{/other_user}","gists_url":"https://api.github.com/users/kshlm/gists{/gist_id}","starred_url":"https://api.github.com/users/kshlm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kshlm/subscriptions","organizations_url":"https://api.github.com/users/kshlm/orgs","repos_url":"https://api.github.com/users/kshlm/repos","events_url":"https://api.github.com/users/kshlm/events{/privacy}","received_events_url":"https://api.github.com/users/kshlm/received_events","type":"User","site_admin":false},"body":"Using bufferevent filters we can ensure that read_cb is only called if\r\nenough data has been read.\r\n\r\nFixes #1 ","created_at":"2015-08-18T11:35:44Z","updated_at":"2015-08-18T11:35:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kshlm/pbrpc/pulls/3/commits","review_comments_url":"https://api.github.com/repos/kshlm/pbrpc/pulls/3/comments","review_comment_url":"https://api.github.com/repos/kshlm/pbrpc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kshlm/pbrpc/issues/3/comments","statuses_url":"https://api.github.com/repos/kshlm/pbrpc/statuses/80445e0ae778f6c5f7780ba1df1dc7fdaf476aef","head":{"label":"kshlm:correctly-read-full-incoming-messages","ref":"correctly-read-full-incoming-messages","sha":"80445e0ae778f6c5f7780ba1df1dc7fdaf476aef","user":{"login":"kshlm","id":362086,"avatar_url":"https://avatars.githubusercontent.com/u/362086?v=3","gravatar_id":"","url":"https://api.github.com/users/kshlm","html_url":"https://github.com/kshlm","followers_url":"https://api.github.com/users/kshlm/followers","following_url":"https://api.github.com/users/kshlm/following{/other_user}","gists_url":"https://api.github.com/users/kshlm/gists{/gist_id}","starred_url":"https://api.github.com/users/kshlm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kshlm/subscriptions","organizations_url":"https://api.github.com/users/kshlm/orgs","repos_url":"https://api.github.com/users/kshlm/repos","events_url":"https://api.github.com/users/kshlm/events{/privacy}","received_events_url":"https://api.github.com/users/kshlm/received_events","type":"User","site_admin":false},"repo":{"id":40886602,"name":"pbrpc","full_name":"kshlm/pbrpc","owner":{"login":"kshlm","id":362086,"avatar_url":"https://avatars.githubusercontent.com/u/362086?v=3","gravatar_id":"","url":"https://api.github.com/users/kshlm","html_url":"https://github.com/kshlm","followers_url":"https://api.github.com/users/kshlm/followers","following_url":"https://api.github.com/users/kshlm/following{/other_user}","gists_url":"https://api.github.com/users/kshlm/gists{/gist_id}","starred_url":"https://api.github.com/users/kshlm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kshlm/subscriptions","organizations_url":"https://api.github.com/users/kshlm/orgs","repos_url":"https://api.github.com/users/kshlm/repos","events_url":"https://api.github.com/users/kshlm/events{/privacy}","received_events_url":"https://api.github.com/users/kshlm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kshlm/pbrpc","description":null,"fork":false,"url":"https://api.github.com/repos/kshlm/pbrpc","forks_url":"https://api.github.com/repos/kshlm/pbrpc/forks","keys_url":"https://api.github.com/repos/kshlm/pbrpc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kshlm/pbrpc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kshlm/pbrpc/teams","hooks_url":"https://api.github.com/repos/kshlm/pbrpc/hooks","issue_events_url":"https://api.github.com/repos/kshlm/pbrpc/issues/events{/number}","events_url":"https://api.github.com/repos/kshlm/pbrpc/events","assignees_url":"https://api.github.com/repos/kshlm/pbrpc/assignees{/user}","branches_url":"https://api.github.com/repos/kshlm/pbrpc/branches{/branch}","tags_url":"https://api.github.com/repos/kshlm/pbrpc/tags","blobs_url":"https://api.github.com/repos/kshlm/pbrpc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kshlm/pbrpc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kshlm/pbrpc/git/refs{/sha}","trees_url":"https://api.github.com/repos/kshlm/pbrpc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kshlm/pbrpc/statuses/{sha}","languages_url":"https://api.github.com/repos/kshlm/pbrpc/languages","stargazers_url":"https://api.github.com/repos/kshlm/pbrpc/stargazers","contributors_url":"https://api.github.com/repos/kshlm/pbrpc/contributors","subscribers_url":"https://api.github.com/repos/kshlm/pbrpc/subscribers","subscription_url":"https://api.github.com/repos/kshlm/pbrpc/subscription","commits_url":"https://api.github.com/repos/kshlm/pbrpc/commits{/sha}","git_commits_url":"https://api.github.com/repos/kshlm/pbrpc/git/commits{/sha}","comments_url":"https://api.github.com/repos/kshlm/pbrpc/comments{/number}","issue_comment_url":"https://api.github.com/repos/kshlm/pbrpc/issues/comments{/number}","contents_url":"https://api.github.com/repos/kshlm/pbrpc/contents/{+path}","compare_url":"https://api.github.com/repos/kshlm/pbrpc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kshlm/pbrpc/merges","archive_url":"https://api.github.com/repos/kshlm/pbrpc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kshlm/pbrpc/downloads","issues_url":"https://api.github.com/repos/kshlm/pbrpc/issues{/number}","pulls_url":"https://api.github.com/repos/kshlm/pbrpc/pulls{/number}","milestones_url":"https://api.github.com/repos/kshlm/pbrpc/milestones{/number}","notifications_url":"https://api.github.com/repos/kshlm/pbrpc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kshlm/pbrpc/labels{/name}","releases_url":"https://api.github.com/repos/kshlm/pbrpc/releases{/id}","created_at":"2015-08-17T10:43:59Z","updated_at":"2015-08-17T10:44:35Z","pushed_at":"2015-08-18T11:35:44Z","git_url":"git://github.com/kshlm/pbrpc.git","ssh_url":"git@github.com:kshlm/pbrpc.git","clone_url":"https://github.com/kshlm/pbrpc.git","svn_url":"https://github.com/kshlm/pbrpc","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"kshlm:master","ref":"master","sha":"5f6e126254a3d390c2adb836e67ebbda0c6356f1","user":{"login":"kshlm","id":362086,"avatar_url":"https://avatars.githubusercontent.com/u/362086?v=3","gravatar_id":"","url":"https://api.github.com/users/kshlm","html_url":"https://github.com/kshlm","followers_url":"https://api.github.com/users/kshlm/followers","following_url":"https://api.github.com/users/kshlm/following{/other_user}","gists_url":"https://api.github.com/users/kshlm/gists{/gist_id}","starred_url":"https://api.github.com/users/kshlm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kshlm/subscriptions","organizations_url":"https://api.github.com/users/kshlm/orgs","repos_url":"https://api.github.com/users/kshlm/repos","events_url":"https://api.github.com/users/kshlm/events{/privacy}","received_events_url":"https://api.github.com/users/kshlm/received_events","type":"User","site_admin":false},"repo":{"id":40886602,"name":"pbrpc","full_name":"kshlm/pbrpc","owner":{"login":"kshlm","id":362086,"avatar_url":"https://avatars.githubusercontent.com/u/362086?v=3","gravatar_id":"","url":"https://api.github.com/users/kshlm","html_url":"https://github.com/kshlm","followers_url":"https://api.github.com/users/kshlm/followers","following_url":"https://api.github.com/users/kshlm/following{/other_user}","gists_url":"https://api.github.com/users/kshlm/gists{/gist_id}","starred_url":"https://api.github.com/users/kshlm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kshlm/subscriptions","organizations_url":"https://api.github.com/users/kshlm/orgs","repos_url":"https://api.github.com/users/kshlm/repos","events_url":"https://api.github.com/users/kshlm/events{/privacy}","received_events_url":"https://api.github.com/users/kshlm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kshlm/pbrpc","description":null,"fork":false,"url":"https://api.github.com/repos/kshlm/pbrpc","forks_url":"https://api.github.com/repos/kshlm/pbrpc/forks","keys_url":"https://api.github.com/repos/kshlm/pbrpc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kshlm/pbrpc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kshlm/pbrpc/teams","hooks_url":"https://api.github.com/repos/kshlm/pbrpc/hooks","issue_events_url":"https://api.github.com/repos/kshlm/pbrpc/issues/events{/number}","events_url":"https://api.github.com/repos/kshlm/pbrpc/events","assignees_url":"https://api.github.com/repos/kshlm/pbrpc/assignees{/user}","branches_url":"https://api.github.com/repos/kshlm/pbrpc/branches{/branch}","tags_url":"https://api.github.com/repos/kshlm/pbrpc/tags","blobs_url":"https://api.github.com/repos/kshlm/pbrpc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kshlm/pbrpc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kshlm/pbrpc/git/refs{/sha}","trees_url":"https://api.github.com/repos/kshlm/pbrpc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kshlm/pbrpc/statuses/{sha}","languages_url":"https://api.github.com/repos/kshlm/pbrpc/languages","stargazers_url":"https://api.github.com/repos/kshlm/pbrpc/stargazers","contributors_url":"https://api.github.com/repos/kshlm/pbrpc/contributors","subscribers_url":"https://api.github.com/repos/kshlm/pbrpc/subscribers","subscription_url":"https://api.github.com/repos/kshlm/pbrpc/subscription","commits_url":"https://api.github.com/repos/kshlm/pbrpc/commits{/sha}","git_commits_url":"https://api.github.com/repos/kshlm/pbrpc/git/commits{/sha}","comments_url":"https://api.github.com/repos/kshlm/pbrpc/comments{/number}","issue_comment_url":"https://api.github.com/repos/kshlm/pbrpc/issues/comments{/number}","contents_url":"https://api.github.com/repos/kshlm/pbrpc/contents/{+path}","compare_url":"https://api.github.com/repos/kshlm/pbrpc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kshlm/pbrpc/merges","archive_url":"https://api.github.com/repos/kshlm/pbrpc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kshlm/pbrpc/downloads","issues_url":"https://api.github.com/repos/kshlm/pbrpc/issues{/number}","pulls_url":"https://api.github.com/repos/kshlm/pbrpc/pulls{/number}","milestones_url":"https://api.github.com/repos/kshlm/pbrpc/milestones{/number}","notifications_url":"https://api.github.com/repos/kshlm/pbrpc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kshlm/pbrpc/labels{/name}","releases_url":"https://api.github.com/repos/kshlm/pbrpc/releases{/id}","created_at":"2015-08-17T10:43:59Z","updated_at":"2015-08-17T10:44:35Z","pushed_at":"2015-08-18T11:35:44Z","git_url":"git://github.com/kshlm/pbrpc.git","ssh_url":"git@github.com:kshlm/pbrpc.git","clone_url":"https://github.com/kshlm/pbrpc.git","svn_url":"https://github.com/kshlm/pbrpc","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kshlm/pbrpc/pulls/3"},"html":{"href":"https://github.com/kshlm/pbrpc/pull/3"},"issue":{"href":"https://api.github.com/repos/kshlm/pbrpc/issues/3"},"comments":{"href":"https://api.github.com/repos/kshlm/pbrpc/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/kshlm/pbrpc/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/kshlm/pbrpc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kshlm/pbrpc/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/kshlm/pbrpc/statuses/80445e0ae778f6c5f7780ba1df1dc7fdaf476aef"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":43,"deletions":2,"changed_files":1}}