{"action":"closed","issue":{"url":"https://api.github.com/repos/carpedm20/LINE/issues/40","labels_url":"https://api.github.com/repos/carpedm20/LINE/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/carpedm20/LINE/issues/40/comments","events_url":"https://api.github.com/repos/carpedm20/LINE/issues/40/events","html_url":"https://github.com/carpedm20/LINE/issues/40","id":89232378,"number":40,"title":"Push/Pull for _fetchOperations","user":{"login":"anusoft","id":201861,"avatar_url":"https://avatars.githubusercontent.com/u/201861?v=3","gravatar_id":"","url":"https://api.github.com/users/anusoft","html_url":"https://github.com/anusoft","followers_url":"https://api.github.com/users/anusoft/followers","following_url":"https://api.github.com/users/anusoft/following{/other_user}","gists_url":"https://api.github.com/users/anusoft/gists{/gist_id}","starred_url":"https://api.github.com/users/anusoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anusoft/subscriptions","organizations_url":"https://api.github.com/users/anusoft/orgs","repos_url":"https://api.github.com/users/anusoft/repos","events_url":"https://api.github.com/users/anusoft/events{/privacy}","received_events_url":"https://api.github.com/users/anusoft/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-18T08:28:27Z","updated_at":"2015-06-18T12:01:41Z","closed_at":"2015-06-18T12:01:41Z","body":"I've capture traffic and found that longPoll function use the _fetchOperations which is using _client:\r\n```\r\napi.py\r\nself._client.fetchOperations(revision, count)\r\n```\r\nThis _client is based on non-blocking pull endpoint which result in excessive uses of data\r\nso I've changed to\r\n```\r\napi.py\r\nreturn self._client_in.fetchOperations(revision, count)\r\n```\r\nwhich still receives event and not use too many calls and seem much faster, but this method is blocking.\r\n\r\nI'm not sure if we should have two modes (blocking via _client_in and non-blocking via _client)  or not."}}