{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/ebernhardson/fastcgi/pulls/4","id":36570123,"html_url":"https://github.com/ebernhardson/fastcgi/pull/4","diff_url":"https://github.com/ebernhardson/fastcgi/pull/4.diff","patch_url":"https://github.com/ebernhardson/fastcgi/pull/4.patch","issue_url":"https://api.github.com/repos/ebernhardson/fastcgi/issues/4","number":4,"state":"open","locked":false,"title":"Matching FastCGI spec with max packet size in/out","user":{"login":"homeyjd","id":1088185,"avatar_url":"https://avatars.githubusercontent.com/u/1088185?v=3","gravatar_id":"","url":"https://api.github.com/users/homeyjd","html_url":"https://github.com/homeyjd","followers_url":"https://api.github.com/users/homeyjd/followers","following_url":"https://api.github.com/users/homeyjd/following{/other_user}","gists_url":"https://api.github.com/users/homeyjd/gists{/gist_id}","starred_url":"https://api.github.com/users/homeyjd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/homeyjd/subscriptions","organizations_url":"https://api.github.com/users/homeyjd/orgs","repos_url":"https://api.github.com/users/homeyjd/repos","events_url":"https://api.github.com/users/homeyjd/events{/privacy}","received_events_url":"https://api.github.com/users/homeyjd/received_events","type":"User","site_admin":false},"body":"The FastCGI specification uses standard uints to declare packet sizes.  The PHP-FPM core code confirms this in implementation:\r\nhttps://github.com/php/php-src/blob/master/main/fastcgi.c#L971\r\nDefined in fastcgi.h:\r\nhttps://github.com/php/php-src/blob/master/main/fastcgi.h#L25\r\n\r\nThis commit fixes large STDIN payloads by ensuring all packets are within max-size.\r\nhttps://github.com/dmvorg/fastcgi/blob/master/lib/EBernhardson/FastCGI/Client.php#L253\r\n\r\nMy use case involves FPM handling Resque job tasks.\r\nhttps://github.com/dmvorg/php-resque/blob/master/lib/JobStrategy/Fastcgi.php\r\nTherefore, I also needed to also re-enable async requests, serialization, and (for test cases) timeouts.\r\n\r\n* Adding __sleep() to eliminate actual socket handle when serializing.\r\n* Adding ability to create multiple async requests into FCGI process pool without blocking.\r\n* Adding \"setTimeout\" for read operations, though using it is not recommended.  Blocking reads produce consistent behavior and are more inline with user expectations.\r\n","created_at":"2015-05-30T18:54:02Z","updated_at":"2015-05-30T18:54:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ebernhardson/fastcgi/pulls/4/commits","review_comments_url":"https://api.github.com/repos/ebernhardson/fastcgi/pulls/4/comments","review_comment_url":"https://api.github.com/repos/ebernhardson/fastcgi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ebernhardson/fastcgi/issues/4/comments","statuses_url":"https://api.github.com/repos/ebernhardson/fastcgi/statuses/b3db760a3aefb96864345b272eeb8b5d6c39245f","head":{"label":"dmvorg:master","ref":"master","sha":"b3db760a3aefb96864345b272eeb8b5d6c39245f","user":{"login":"dmvorg","id":2294622,"avatar_url":"https://avatars.githubusercontent.com/u/2294622?v=3","gravatar_id":"","url":"https://api.github.com/users/dmvorg","html_url":"https://github.com/dmvorg","followers_url":"https://api.github.com/users/dmvorg/followers","following_url":"https://api.github.com/users/dmvorg/following{/other_user}","gists_url":"https://api.github.com/users/dmvorg/gists{/gist_id}","starred_url":"https://api.github.com/users/dmvorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmvorg/subscriptions","organizations_url":"https://api.github.com/users/dmvorg/orgs","repos_url":"https://api.github.com/users/dmvorg/repos","events_url":"https://api.github.com/users/dmvorg/events{/privacy}","received_events_url":"https://api.github.com/users/dmvorg/received_events","type":"Organization","site_admin":false},"repo":{"id":36537456,"name":"fastcgi","full_name":"dmvorg/fastcgi","owner":{"login":"dmvorg","id":2294622,"avatar_url":"https://avatars.githubusercontent.com/u/2294622?v=3","gravatar_id":"","url":"https://api.github.com/users/dmvorg","html_url":"https://github.com/dmvorg","followers_url":"https://api.github.com/users/dmvorg/followers","following_url":"https://api.github.com/users/dmvorg/following{/other_user}","gists_url":"https://api.github.com/users/dmvorg/gists{/gist_id}","starred_url":"https://api.github.com/users/dmvorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmvorg/subscriptions","organizations_url":"https://api.github.com/users/dmvorg/orgs","repos_url":"https://api.github.com/users/dmvorg/repos","events_url":"https://api.github.com/users/dmvorg/events{/privacy}","received_events_url":"https://api.github.com/users/dmvorg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dmvorg/fastcgi","description":"FastCGI Client implementation for PHP","fork":true,"url":"https://api.github.com/repos/dmvorg/fastcgi","forks_url":"https://api.github.com/repos/dmvorg/fastcgi/forks","keys_url":"https://api.github.com/repos/dmvorg/fastcgi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmvorg/fastcgi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmvorg/fastcgi/teams","hooks_url":"https://api.github.com/repos/dmvorg/fastcgi/hooks","issue_events_url":"https://api.github.com/repos/dmvorg/fastcgi/issues/events{/number}","events_url":"https://api.github.com/repos/dmvorg/fastcgi/events","assignees_url":"https://api.github.com/repos/dmvorg/fastcgi/assignees{/user}","branches_url":"https://api.github.com/repos/dmvorg/fastcgi/branches{/branch}","tags_url":"https://api.github.com/repos/dmvorg/fastcgi/tags","blobs_url":"https://api.github.com/repos/dmvorg/fastcgi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmvorg/fastcgi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmvorg/fastcgi/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmvorg/fastcgi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmvorg/fastcgi/statuses/{sha}","languages_url":"https://api.github.com/repos/dmvorg/fastcgi/languages","stargazers_url":"https://api.github.com/repos/dmvorg/fastcgi/stargazers","contributors_url":"https://api.github.com/repos/dmvorg/fastcgi/contributors","subscribers_url":"https://api.github.com/repos/dmvorg/fastcgi/subscribers","subscription_url":"https://api.github.com/repos/dmvorg/fastcgi/subscription","commits_url":"https://api.github.com/repos/dmvorg/fastcgi/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmvorg/fastcgi/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmvorg/fastcgi/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmvorg/fastcgi/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmvorg/fastcgi/contents/{+path}","compare_url":"https://api.github.com/repos/dmvorg/fastcgi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmvorg/fastcgi/merges","archive_url":"https://api.github.com/repos/dmvorg/fastcgi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmvorg/fastcgi/downloads","issues_url":"https://api.github.com/repos/dmvorg/fastcgi/issues{/number}","pulls_url":"https://api.github.com/repos/dmvorg/fastcgi/pulls{/number}","milestones_url":"https://api.github.com/repos/dmvorg/fastcgi/milestones{/number}","notifications_url":"https://api.github.com/repos/dmvorg/fastcgi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmvorg/fastcgi/labels{/name}","releases_url":"https://api.github.com/repos/dmvorg/fastcgi/releases{/id}","created_at":"2015-05-30T01:16:05Z","updated_at":"2015-05-30T01:16:05Z","pushed_at":"2015-05-30T18:44:20Z","git_url":"git://github.com/dmvorg/fastcgi.git","ssh_url":"git@github.com:dmvorg/fastcgi.git","clone_url":"https://github.com/dmvorg/fastcgi.git","svn_url":"https://github.com/dmvorg/fastcgi","homepage":null,"size":108,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"ebernhardson:master","ref":"master","sha":"0eae707bda5546250bf6dd8da62b38036e357e5e","user":{"login":"ebernhardson","id":558434,"avatar_url":"https://avatars.githubusercontent.com/u/558434?v=3","gravatar_id":"","url":"https://api.github.com/users/ebernhardson","html_url":"https://github.com/ebernhardson","followers_url":"https://api.github.com/users/ebernhardson/followers","following_url":"https://api.github.com/users/ebernhardson/following{/other_user}","gists_url":"https://api.github.com/users/ebernhardson/gists{/gist_id}","starred_url":"https://api.github.com/users/ebernhardson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebernhardson/subscriptions","organizations_url":"https://api.github.com/users/ebernhardson/orgs","repos_url":"https://api.github.com/users/ebernhardson/repos","events_url":"https://api.github.com/users/ebernhardson/events{/privacy}","received_events_url":"https://api.github.com/users/ebernhardson/received_events","type":"User","site_admin":false},"repo":{"id":7971377,"name":"fastcgi","full_name":"ebernhardson/fastcgi","owner":{"login":"ebernhardson","id":558434,"avatar_url":"https://avatars.githubusercontent.com/u/558434?v=3","gravatar_id":"","url":"https://api.github.com/users/ebernhardson","html_url":"https://github.com/ebernhardson","followers_url":"https://api.github.com/users/ebernhardson/followers","following_url":"https://api.github.com/users/ebernhardson/following{/other_user}","gists_url":"https://api.github.com/users/ebernhardson/gists{/gist_id}","starred_url":"https://api.github.com/users/ebernhardson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebernhardson/subscriptions","organizations_url":"https://api.github.com/users/ebernhardson/orgs","repos_url":"https://api.github.com/users/ebernhardson/repos","events_url":"https://api.github.com/users/ebernhardson/events{/privacy}","received_events_url":"https://api.github.com/users/ebernhardson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ebernhardson/fastcgi","description":"FastCGI Client implementation for PHP","fork":false,"url":"https://api.github.com/repos/ebernhardson/fastcgi","forks_url":"https://api.github.com/repos/ebernhardson/fastcgi/forks","keys_url":"https://api.github.com/repos/ebernhardson/fastcgi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ebernhardson/fastcgi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ebernhardson/fastcgi/teams","hooks_url":"https://api.github.com/repos/ebernhardson/fastcgi/hooks","issue_events_url":"https://api.github.com/repos/ebernhardson/fastcgi/issues/events{/number}","events_url":"https://api.github.com/repos/ebernhardson/fastcgi/events","assignees_url":"https://api.github.com/repos/ebernhardson/fastcgi/assignees{/user}","branches_url":"https://api.github.com/repos/ebernhardson/fastcgi/branches{/branch}","tags_url":"https://api.github.com/repos/ebernhardson/fastcgi/tags","blobs_url":"https://api.github.com/repos/ebernhardson/fastcgi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ebernhardson/fastcgi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ebernhardson/fastcgi/git/refs{/sha}","trees_url":"https://api.github.com/repos/ebernhardson/fastcgi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ebernhardson/fastcgi/statuses/{sha}","languages_url":"https://api.github.com/repos/ebernhardson/fastcgi/languages","stargazers_url":"https://api.github.com/repos/ebernhardson/fastcgi/stargazers","contributors_url":"https://api.github.com/repos/ebernhardson/fastcgi/contributors","subscribers_url":"https://api.github.com/repos/ebernhardson/fastcgi/subscribers","subscription_url":"https://api.github.com/repos/ebernhardson/fastcgi/subscription","commits_url":"https://api.github.com/repos/ebernhardson/fastcgi/commits{/sha}","git_commits_url":"https://api.github.com/repos/ebernhardson/fastcgi/git/commits{/sha}","comments_url":"https://api.github.com/repos/ebernhardson/fastcgi/comments{/number}","issue_comment_url":"https://api.github.com/repos/ebernhardson/fastcgi/issues/comments{/number}","contents_url":"https://api.github.com/repos/ebernhardson/fastcgi/contents/{+path}","compare_url":"https://api.github.com/repos/ebernhardson/fastcgi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ebernhardson/fastcgi/merges","archive_url":"https://api.github.com/repos/ebernhardson/fastcgi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ebernhardson/fastcgi/downloads","issues_url":"https://api.github.com/repos/ebernhardson/fastcgi/issues{/number}","pulls_url":"https://api.github.com/repos/ebernhardson/fastcgi/pulls{/number}","milestones_url":"https://api.github.com/repos/ebernhardson/fastcgi/milestones{/number}","notifications_url":"https://api.github.com/repos/ebernhardson/fastcgi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ebernhardson/fastcgi/labels{/name}","releases_url":"https://api.github.com/repos/ebernhardson/fastcgi/releases{/id}","created_at":"2013-02-02T04:08:50Z","updated_at":"2015-05-29T10:18:25Z","pushed_at":"2015-05-30T18:54:02Z","git_url":"git://github.com/ebernhardson/fastcgi.git","ssh_url":"git@github.com:ebernhardson/fastcgi.git","clone_url":"https://github.com/ebernhardson/fastcgi.git","svn_url":"https://github.com/ebernhardson/fastcgi","homepage":null,"size":153,"stargazers_count":11,"watchers_count":11,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ebernhardson/fastcgi/pulls/4"},"html":{"href":"https://github.com/ebernhardson/fastcgi/pull/4"},"issue":{"href":"https://api.github.com/repos/ebernhardson/fastcgi/issues/4"},"comments":{"href":"https://api.github.com/repos/ebernhardson/fastcgi/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/ebernhardson/fastcgi/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/ebernhardson/fastcgi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ebernhardson/fastcgi/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/ebernhardson/fastcgi/statuses/b3db760a3aefb96864345b272eeb8b5d6c39245f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":402,"deletions":250,"changed_files":3}}