{"action":"created","issue":{"url":"https://api.github.com/repos/deepstreamIO/deepstream.io/issues/182","repository_url":"https://api.github.com/repos/deepstreamIO/deepstream.io","labels_url":"https://api.github.com/repos/deepstreamIO/deepstream.io/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/deepstreamIO/deepstream.io/issues/182/comments","events_url":"https://api.github.com/repos/deepstreamIO/deepstream.io/issues/182/events","html_url":"https://github.com/deepstreamIO/deepstream.io/pull/182","id":159879366,"number":182,"title":"Fixed eventEmitter leak error","user":{"login":"WolframHempel","id":1503717,"avatar_url":"https://avatars.githubusercontent.com/u/1503717?v=3","gravatar_id":"","url":"https://api.github.com/users/WolframHempel","html_url":"https://github.com/WolframHempel","followers_url":"https://api.github.com/users/WolframHempel/followers","following_url":"https://api.github.com/users/WolframHempel/following{/other_user}","gists_url":"https://api.github.com/users/WolframHempel/gists{/gist_id}","starred_url":"https://api.github.com/users/WolframHempel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WolframHempel/subscriptions","organizations_url":"https://api.github.com/users/WolframHempel/orgs","repos_url":"https://api.github.com/users/WolframHempel/repos","events_url":"https://api.github.com/users/WolframHempel/events{/privacy}","received_events_url":"https://api.github.com/users/WolframHempel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/deepstreamIO/deepstream.io/labels/in%20review","name":"in review","color":"e6e6e6"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-13T06:11:48Z","updated_at":"2016-06-13T07:33:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/deepstreamIO/deepstream.io/pulls/182","html_url":"https://github.com/deepstreamIO/deepstream.io/pull/182","diff_url":"https://github.com/deepstreamIO/deepstream.io/pull/182.diff","patch_url":"https://github.com/deepstreamIO/deepstream.io/pull/182.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/deepstreamIO/deepstream.io/issues/comments/225507875","html_url":"https://github.com/deepstreamIO/deepstream.io/pull/182#issuecomment-225507875","issue_url":"https://api.github.com/repos/deepstreamIO/deepstream.io/issues/182","id":225507875,"user":{"login":"WolframHempel","id":1503717,"avatar_url":"https://avatars.githubusercontent.com/u/1503717?v=3","gravatar_id":"","url":"https://api.github.com/users/WolframHempel","html_url":"https://github.com/WolframHempel","followers_url":"https://api.github.com/users/WolframHempel/followers","following_url":"https://api.github.com/users/WolframHempel/following{/other_user}","gists_url":"https://api.github.com/users/WolframHempel/gists{/gist_id}","starred_url":"https://api.github.com/users/WolframHempel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WolframHempel/subscriptions","organizations_url":"https://api.github.com/users/WolframHempel/orgs","repos_url":"https://api.github.com/users/WolframHempel/repos","events_url":"https://api.github.com/users/WolframHempel/events{/privacy}","received_events_url":"https://api.github.com/users/WolframHempel/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T07:33:12Z","updated_at":"2016-06-13T07:33:12Z","body":"Good question: When multiple deepstream clients can provide the same rpc, the remote-rpc-provider-registry chooses the first provider at random to achieve basic load balancing. This behavior is tested [here](https://github.com/deepstreamIO/deepstream.io/blob/master/test/rpc/remote-rpc-provider-registrySpec.js#L136). To determine if a remote provider is available, the provider registry checks how long ago it was registered ([here](https://github.com/deepstreamIO/deepstream.io/blob/master/src/rpc/remote-rpc-provider-registry.js#L156))\r\n\r\nThe expiration time for remote providers was set to 10 milliseconds. The first provider (privateTopicA) is registered [here](https://github.com/deepstreamIO/deepstream.io/blob/master/test/rpc/remote-rpc-provider-registrySpec.js#L36), the second (privateTopicC)[here](https://github.com/deepstreamIO/deepstream.io/blob/master/test/rpc/remote-rpc-provider-registrySpec.js#L110). Jasmine runs these tests in an asynchronous queue. If more than 10 milliseconds pass since the first provider was registered, `isUpToDate()` returns false, the topic is removed, `hadTopicA` is never true and the while loop keeps being executed. On every execution the server adds the callback as a listener for an incoming rpc provider message until the event emitter limit is breached"}}
{"actor":{"display_login":"WolframHempel"}}