{"action":"created","issue":{"url":"https://api.github.com/repos/Ph3nol/NotificationPusher/issues/99","repository_url":"https://api.github.com/repos/Ph3nol/NotificationPusher","labels_url":"https://api.github.com/repos/Ph3nol/NotificationPusher/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/Ph3nol/NotificationPusher/issues/99/comments","events_url":"https://api.github.com/repos/Ph3nol/NotificationPusher/issues/99/events","html_url":"https://github.com/Ph3nol/NotificationPusher/issues/99","id":131963291,"number":99,"title":"connection not reused? slow performance?","user":{"login":"sstadtl","id":1283030,"avatar_url":"https://avatars.githubusercontent.com/u/1283030?v=3","gravatar_id":"","url":"https://api.github.com/users/sstadtl","html_url":"https://github.com/sstadtl","followers_url":"https://api.github.com/users/sstadtl/followers","following_url":"https://api.github.com/users/sstadtl/following{/other_user}","gists_url":"https://api.github.com/users/sstadtl/gists{/gist_id}","starred_url":"https://api.github.com/users/sstadtl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sstadtl/subscriptions","organizations_url":"https://api.github.com/users/sstadtl/orgs","repos_url":"https://api.github.com/users/sstadtl/repos","events_url":"https://api.github.com/users/sstadtl/events{/privacy}","received_events_url":"https://api.github.com/users/sstadtl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-07T12:25:18Z","updated_at":"2016-03-12T08:57:22Z","closed_at":null,"body":"I am having performance trouble with this implementation. \r\nData suggests, that the connections are not properly reused.\r\nsmall sample:\r\n\r\n1 message 1.59917497635s\r\n5 messages: 5.86858487129s\r\n4 messages: 4.87945485115\r\n\r\nI build my own quick and dirty implementation based on simplepush.php from here:\r\n(http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1)\r\nand the comments here:\r\n(http://stackoverflow.com/questions/14563097/sending-multiple-iphone-push-notifications-apns-php-tutorial)\r\n\r\nPerformance data is almost constant no matter how many messages:\r\n\r\n1: 0.842793564642\r\n4: 0.841887950897\r\n5: 0.855985164642\r\n\r\nCan anyone confirm or debunk?\r\n\r\np.s.: Yes, my code does loop with \"$pushManager->add($push);\" and does send only once after the loop with \"$pushManager->push();\". this is not the cause.\r\n\r\n    foreach ($todolive as $val) {\r\n        $push = new Push($apnsAdapterlive, $val[0], $val[1]);\r\n        $pushManagerlive->add($push);\r\n    }\r\n    $pushManagerlive->push();\r\n"},"comment":{"url":"https://api.github.com/repos/Ph3nol/NotificationPusher/issues/comments/195698665","html_url":"https://github.com/Ph3nol/NotificationPusher/issues/99#issuecomment-195698665","issue_url":"https://api.github.com/repos/Ph3nol/NotificationPusher/issues/99","id":195698665,"user":{"login":"nurfgun","id":3580630,"avatar_url":"https://avatars.githubusercontent.com/u/3580630?v=3","gravatar_id":"","url":"https://api.github.com/users/nurfgun","html_url":"https://github.com/nurfgun","followers_url":"https://api.github.com/users/nurfgun/followers","following_url":"https://api.github.com/users/nurfgun/following{/other_user}","gists_url":"https://api.github.com/users/nurfgun/gists{/gist_id}","starred_url":"https://api.github.com/users/nurfgun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nurfgun/subscriptions","organizations_url":"https://api.github.com/users/nurfgun/orgs","repos_url":"https://api.github.com/users/nurfgun/repos","events_url":"https://api.github.com/users/nurfgun/events{/privacy}","received_events_url":"https://api.github.com/users/nurfgun/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T08:57:22Z","updated_at":"2016-03-12T08:57:22Z","body":"experiencing the same issue. had to create a designated request url and snd push via an async call using curl request to it. Any pull requests or some sort?    "}}