{"action":"opened","number":105,"pull_request":{"url":"https://api.github.com/repos/gabrielbull/php-ups-api/pulls/105","id":74995859,"html_url":"https://github.com/gabrielbull/php-ups-api/pull/105","diff_url":"https://github.com/gabrielbull/php-ups-api/pull/105.diff","patch_url":"https://github.com/gabrielbull/php-ups-api/pull/105.patch","issue_url":"https://api.github.com/repos/gabrielbull/php-ups-api/issues/105","number":105,"state":"open","locked":false,"title":"Do not new up Guzzle on each Request","user":{"login":"stephenjwinn","id":4694799,"avatar_url":"https://avatars.githubusercontent.com/u/4694799?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenjwinn","html_url":"https://github.com/stephenjwinn","followers_url":"https://api.github.com/users/stephenjwinn/followers","following_url":"https://api.github.com/users/stephenjwinn/following{/other_user}","gists_url":"https://api.github.com/users/stephenjwinn/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenjwinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenjwinn/subscriptions","organizations_url":"https://api.github.com/users/stephenjwinn/orgs","repos_url":"https://api.github.com/users/stephenjwinn/repos","events_url":"https://api.github.com/users/stephenjwinn/events{/privacy}","received_events_url":"https://api.github.com/users/stephenjwinn/received_events","type":"User","site_admin":false},"body":"After a couple hundred calls, this chokes. In our application we use a cron to check Tracking Activity on a large number of orders periodically. Creating a new instance of Guzzle for each request eventually throws an error.\r\n\r\nFailure: cURL error 35: error:02001018:system library:fopen:Too many open files (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) 149:/gabrielbull/ups-api/src/Request.php","created_at":"2016-06-23T17:38:18Z","updated_at":"2016-06-23T17:38:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"012b4b0b99d4e4a0e6e5605dc30d6c5d5949f177","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gabrielbull/php-ups-api/pulls/105/commits","review_comments_url":"https://api.github.com/repos/gabrielbull/php-ups-api/pulls/105/comments","review_comment_url":"https://api.github.com/repos/gabrielbull/php-ups-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gabrielbull/php-ups-api/issues/105/comments","statuses_url":"https://api.github.com/repos/gabrielbull/php-ups-api/statuses/c589fc54418a130a0256a8e632fc33b5073c2280","head":{"label":"stephenjwinn:patch-2","ref":"patch-2","sha":"c589fc54418a130a0256a8e632fc33b5073c2280","user":{"login":"stephenjwinn","id":4694799,"avatar_url":"https://avatars.githubusercontent.com/u/4694799?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenjwinn","html_url":"https://github.com/stephenjwinn","followers_url":"https://api.github.com/users/stephenjwinn/followers","following_url":"https://api.github.com/users/stephenjwinn/following{/other_user}","gists_url":"https://api.github.com/users/stephenjwinn/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenjwinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenjwinn/subscriptions","organizations_url":"https://api.github.com/users/stephenjwinn/orgs","repos_url":"https://api.github.com/users/stephenjwinn/repos","events_url":"https://api.github.com/users/stephenjwinn/events{/privacy}","received_events_url":"https://api.github.com/users/stephenjwinn/received_events","type":"User","site_admin":false},"repo":{"id":52676866,"name":"php-ups-api","full_name":"stephenjwinn/php-ups-api","owner":{"login":"stephenjwinn","id":4694799,"avatar_url":"https://avatars.githubusercontent.com/u/4694799?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenjwinn","html_url":"https://github.com/stephenjwinn","followers_url":"https://api.github.com/users/stephenjwinn/followers","following_url":"https://api.github.com/users/stephenjwinn/following{/other_user}","gists_url":"https://api.github.com/users/stephenjwinn/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenjwinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenjwinn/subscriptions","organizations_url":"https://api.github.com/users/stephenjwinn/orgs","repos_url":"https://api.github.com/users/stephenjwinn/repos","events_url":"https://api.github.com/users/stephenjwinn/events{/privacy}","received_events_url":"https://api.github.com/users/stephenjwinn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stephenjwinn/php-ups-api","description":"PHP Wrapper for all UPS API","fork":true,"url":"https://api.github.com/repos/stephenjwinn/php-ups-api","forks_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/forks","keys_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/teams","hooks_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/hooks","issue_events_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/issues/events{/number}","events_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/events","assignees_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/assignees{/user}","branches_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/branches{/branch}","tags_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/tags","blobs_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/statuses/{sha}","languages_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/languages","stargazers_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/stargazers","contributors_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/contributors","subscribers_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/subscribers","subscription_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/subscription","commits_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/contents/{+path}","compare_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/merges","archive_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/downloads","issues_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/issues{/number}","pulls_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/pulls{/number}","milestones_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/milestones{/number}","notifications_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/labels{/name}","releases_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/releases{/id}","deployments_url":"https://api.github.com/repos/stephenjwinn/php-ups-api/deployments","created_at":"2016-02-27T16:45:22Z","updated_at":"2016-02-27T16:45:23Z","pushed_at":"2016-06-23T17:37:56Z","git_url":"git://github.com/stephenjwinn/php-ups-api.git","ssh_url":"git@github.com:stephenjwinn/php-ups-api.git","clone_url":"https://github.com/stephenjwinn/php-ups-api.git","svn_url":"https://github.com/stephenjwinn/php-ups-api","homepage":"","size":476,"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":"gabrielbull:master","ref":"master","sha":"d9e48d1dc0c4fdd17bbcfc506c314e937e05b8b6","user":{"login":"gabrielbull","id":671923,"avatar_url":"https://avatars.githubusercontent.com/u/671923?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielbull","html_url":"https://github.com/gabrielbull","followers_url":"https://api.github.com/users/gabrielbull/followers","following_url":"https://api.github.com/users/gabrielbull/following{/other_user}","gists_url":"https://api.github.com/users/gabrielbull/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielbull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielbull/subscriptions","organizations_url":"https://api.github.com/users/gabrielbull/orgs","repos_url":"https://api.github.com/users/gabrielbull/repos","events_url":"https://api.github.com/users/gabrielbull/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielbull/received_events","type":"User","site_admin":false},"repo":{"id":7774788,"name":"php-ups-api","full_name":"gabrielbull/php-ups-api","owner":{"login":"gabrielbull","id":671923,"avatar_url":"https://avatars.githubusercontent.com/u/671923?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielbull","html_url":"https://github.com/gabrielbull","followers_url":"https://api.github.com/users/gabrielbull/followers","following_url":"https://api.github.com/users/gabrielbull/following{/other_user}","gists_url":"https://api.github.com/users/gabrielbull/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielbull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielbull/subscriptions","organizations_url":"https://api.github.com/users/gabrielbull/orgs","repos_url":"https://api.github.com/users/gabrielbull/repos","events_url":"https://api.github.com/users/gabrielbull/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielbull/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gabrielbull/php-ups-api","description":"PHP Wrapper for all UPS API","fork":false,"url":"https://api.github.com/repos/gabrielbull/php-ups-api","forks_url":"https://api.github.com/repos/gabrielbull/php-ups-api/forks","keys_url":"https://api.github.com/repos/gabrielbull/php-ups-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gabrielbull/php-ups-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gabrielbull/php-ups-api/teams","hooks_url":"https://api.github.com/repos/gabrielbull/php-ups-api/hooks","issue_events_url":"https://api.github.com/repos/gabrielbull/php-ups-api/issues/events{/number}","events_url":"https://api.github.com/repos/gabrielbull/php-ups-api/events","assignees_url":"https://api.github.com/repos/gabrielbull/php-ups-api/assignees{/user}","branches_url":"https://api.github.com/repos/gabrielbull/php-ups-api/branches{/branch}","tags_url":"https://api.github.com/repos/gabrielbull/php-ups-api/tags","blobs_url":"https://api.github.com/repos/gabrielbull/php-ups-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gabrielbull/php-ups-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gabrielbull/php-ups-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/gabrielbull/php-ups-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gabrielbull/php-ups-api/statuses/{sha}","languages_url":"https://api.github.com/repos/gabrielbull/php-ups-api/languages","stargazers_url":"https://api.github.com/repos/gabrielbull/php-ups-api/stargazers","contributors_url":"https://api.github.com/repos/gabrielbull/php-ups-api/contributors","subscribers_url":"https://api.github.com/repos/gabrielbull/php-ups-api/subscribers","subscription_url":"https://api.github.com/repos/gabrielbull/php-ups-api/subscription","commits_url":"https://api.github.com/repos/gabrielbull/php-ups-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/gabrielbull/php-ups-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/gabrielbull/php-ups-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/gabrielbull/php-ups-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/gabrielbull/php-ups-api/contents/{+path}","compare_url":"https://api.github.com/repos/gabrielbull/php-ups-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gabrielbull/php-ups-api/merges","archive_url":"https://api.github.com/repos/gabrielbull/php-ups-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gabrielbull/php-ups-api/downloads","issues_url":"https://api.github.com/repos/gabrielbull/php-ups-api/issues{/number}","pulls_url":"https://api.github.com/repos/gabrielbull/php-ups-api/pulls{/number}","milestones_url":"https://api.github.com/repos/gabrielbull/php-ups-api/milestones{/number}","notifications_url":"https://api.github.com/repos/gabrielbull/php-ups-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gabrielbull/php-ups-api/labels{/name}","releases_url":"https://api.github.com/repos/gabrielbull/php-ups-api/releases{/id}","deployments_url":"https://api.github.com/repos/gabrielbull/php-ups-api/deployments","created_at":"2013-01-23T13:07:27Z","updated_at":"2016-06-04T20:05:42Z","pushed_at":"2016-06-23T17:38:18Z","git_url":"git://github.com/gabrielbull/php-ups-api.git","ssh_url":"git@github.com:gabrielbull/php-ups-api.git","clone_url":"https://github.com/gabrielbull/php-ups-api.git","svn_url":"https://github.com/gabrielbull/php-ups-api","homepage":"","size":675,"stargazers_count":128,"watchers_count":128,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":93,"mirror_url":null,"open_issues_count":3,"forks":93,"open_issues":3,"watchers":128,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gabrielbull/php-ups-api/pulls/105"},"html":{"href":"https://github.com/gabrielbull/php-ups-api/pull/105"},"issue":{"href":"https://api.github.com/repos/gabrielbull/php-ups-api/issues/105"},"comments":{"href":"https://api.github.com/repos/gabrielbull/php-ups-api/issues/105/comments"},"review_comments":{"href":"https://api.github.com/repos/gabrielbull/php-ups-api/pulls/105/comments"},"review_comment":{"href":"https://api.github.com/repos/gabrielbull/php-ups-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gabrielbull/php-ups-api/pulls/105/commits"},"statuses":{"href":"https://api.github.com/repos/gabrielbull/php-ups-api/statuses/c589fc54418a130a0256a8e632fc33b5073c2280"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":18,"deletions":3,"changed_files":1}}
{"actor":{"display_login":"stephenjwinn"}}