{"action":"created","issue":{"url":"https://api.github.com/repos/quantmind/pulsar/issues/152","labels_url":"https://api.github.com/repos/quantmind/pulsar/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/quantmind/pulsar/issues/152/comments","events_url":"https://api.github.com/repos/quantmind/pulsar/issues/152/events","html_url":"https://github.com/quantmind/pulsar/issues/152","id":93682893,"number":152,"title":"the count of  `sessions` increased incorrect in multiprocess model","user":{"login":"nmg1986","id":3889089,"avatar_url":"https://avatars.githubusercontent.com/u/3889089?v=3","gravatar_id":"","url":"https://api.github.com/users/nmg1986","html_url":"https://github.com/nmg1986","followers_url":"https://api.github.com/users/nmg1986/followers","following_url":"https://api.github.com/users/nmg1986/following{/other_user}","gists_url":"https://api.github.com/users/nmg1986/gists{/gist_id}","starred_url":"https://api.github.com/users/nmg1986/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmg1986/subscriptions","organizations_url":"https://api.github.com/users/nmg1986/orgs","repos_url":"https://api.github.com/users/nmg1986/repos","events_url":"https://api.github.com/users/nmg1986/events{/privacy}","received_events_url":"https://api.github.com/users/nmg1986/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-08T03:32:33Z","updated_at":"2015-07-08T05:56:44Z","closed_at":"2015-07-08T05:56:44Z","body":"````python\r\n  def create_protocol(self, **kw):\r\n        '''Create a new protocol via the :meth:`protocol_factory`\r\n\r\n        This method increase the count of :attr:`sessions` and build\r\n        the protocol passing ``self`` as the producer.\r\n        '''\r\n        self._sessions = self._sessions + 1\r\n        kw['session'] = self.sessions\r\n        kw['producer'] = self\r\n        kw['loop'] = self._loop\r\n        return self.protocol_factory(**kw)\r\n```\r\n\r\nthe `session` count increased incorrect in multiprocess."},"comment":{"url":"https://api.github.com/repos/quantmind/pulsar/issues/comments/119447630","html_url":"https://github.com/quantmind/pulsar/issues/152#issuecomment-119447630","issue_url":"https://api.github.com/repos/quantmind/pulsar/issues/152","id":119447630,"user":{"login":"lsbardel","id":144320,"avatar_url":"https://avatars.githubusercontent.com/u/144320?v=3","gravatar_id":"","url":"https://api.github.com/users/lsbardel","html_url":"https://github.com/lsbardel","followers_url":"https://api.github.com/users/lsbardel/followers","following_url":"https://api.github.com/users/lsbardel/following{/other_user}","gists_url":"https://api.github.com/users/lsbardel/gists{/gist_id}","starred_url":"https://api.github.com/users/lsbardel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsbardel/subscriptions","organizations_url":"https://api.github.com/users/lsbardel/orgs","repos_url":"https://api.github.com/users/lsbardel/repos","events_url":"https://api.github.com/users/lsbardel/events{/privacy}","received_events_url":"https://api.github.com/users/lsbardel/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T05:56:44Z","updated_at":"2015-07-08T05:56:44Z","body":"THe number of sessions in a producer has nothing to do with multi process mode.\r\nThe number of sessions is relative to a given producer only."}}