{"action":"created","issue":{"url":"https://api.github.com/repos/relayrides/pushy/issues/376","repository_url":"https://api.github.com/repos/relayrides/pushy","labels_url":"https://api.github.com/repos/relayrides/pushy/issues/376/labels{/name}","comments_url":"https://api.github.com/repos/relayrides/pushy/issues/376/comments","events_url":"https://api.github.com/repos/relayrides/pushy/issues/376/events","html_url":"https://github.com/relayrides/pushy/issues/376","id":183521725,"number":376,"title":"The Performance of Pushy","user":{"login":"ScienJus","id":8350653,"avatar_url":"https://avatars.githubusercontent.com/u/8350653?v=3","gravatar_id":"","url":"https://api.github.com/users/ScienJus","html_url":"https://github.com/ScienJus","followers_url":"https://api.github.com/users/ScienJus/followers","following_url":"https://api.github.com/users/ScienJus/following{/other_user}","gists_url":"https://api.github.com/users/ScienJus/gists{/gist_id}","starred_url":"https://api.github.com/users/ScienJus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScienJus/subscriptions","organizations_url":"https://api.github.com/users/ScienJus/orgs","repos_url":"https://api.github.com/users/ScienJus/repos","events_url":"https://api.github.com/users/ScienJus/events{/privacy}","received_events_url":"https://api.github.com/users/ScienJus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-17T20:41:10Z","updated_at":"2016-10-18T09:23:54Z","closed_at":null,"body":"when i use pushy，i used netty future and Listener to log every request time，like：\r\n\r\n```\r\nlong start = System.currentTimeMillis();\r\nclient.sendNotification(new SimpleApnsPushNotification(token, \"xxxx\", payload))\r\n    .addListener(future -> {\r\n      try {\r\n        PushNotificationResponse<SimpleApnsPushNotification> result = (PushNotificationResponse<SimpleApnsPushNotification>) future.get();\r\n        long end = System.currentTimeMillis();\r\n        System.out.println((end - start) + \"ms\");\r\n      } catch (ExecutionException e) {\r\n        if (e.getCause() instanceof ClientNotConnectedException) {\r\n          client.getReconnectionFuture().await();\r\n          push(token, payload);\r\n        }\r\n        throw new RuntimeException(e);\r\n      }\r\n    });\r\n```\r\n\r\nbut i found that all of request time is bigger than `300ms`. it is unacceptably low performance. i don't know it's my code fault or it's real Pushy and APNs server's Performance，can you help me?"},"comment":{"url":"https://api.github.com/repos/relayrides/pushy/issues/comments/254453998","html_url":"https://github.com/relayrides/pushy/issues/376#issuecomment-254453998","issue_url":"https://api.github.com/repos/relayrides/pushy/issues/376","id":254453998,"user":{"login":"ScienJus","id":8350653,"avatar_url":"https://avatars.githubusercontent.com/u/8350653?v=3","gravatar_id":"","url":"https://api.github.com/users/ScienJus","html_url":"https://github.com/ScienJus","followers_url":"https://api.github.com/users/ScienJus/followers","following_url":"https://api.github.com/users/ScienJus/following{/other_user}","gists_url":"https://api.github.com/users/ScienJus/gists{/gist_id}","starred_url":"https://api.github.com/users/ScienJus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScienJus/subscriptions","organizations_url":"https://api.github.com/users/ScienJus/orgs","repos_url":"https://api.github.com/users/ScienJus/repos","events_url":"https://api.github.com/users/ScienJus/events{/privacy}","received_events_url":"https://api.github.com/users/ScienJus/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T09:23:54Z","updated_at":"2016-10-18T09:23:54Z","body":"@jchambers and do you have any idea how to test the network with apns server?"}}
{"actor":{"display_login":"ScienJus"}}