{"action":"opened","issue":{"url":"https://api.github.com/repos/mcollina/aedes/issues/164","repository_url":"https://api.github.com/repos/mcollina/aedes","labels_url":"https://api.github.com/repos/mcollina/aedes/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/mcollina/aedes/issues/164/comments","events_url":"https://api.github.com/repos/mcollina/aedes/issues/164/events","html_url":"https://github.com/mcollina/aedes/issues/164","id":271427580,"number":164,"title":"Getting stack overflow when bulk subscribing","user":{"login":"syberkitten","id":3462714,"avatar_url":"https://avatars0.githubusercontent.com/u/3462714?v=4","gravatar_id":"","url":"https://api.github.com/users/syberkitten","html_url":"https://github.com/syberkitten","followers_url":"https://api.github.com/users/syberkitten/followers","following_url":"https://api.github.com/users/syberkitten/following{/other_user}","gists_url":"https://api.github.com/users/syberkitten/gists{/gist_id}","starred_url":"https://api.github.com/users/syberkitten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syberkitten/subscriptions","organizations_url":"https://api.github.com/users/syberkitten/orgs","repos_url":"https://api.github.com/users/syberkitten/repos","events_url":"https://api.github.com/users/syberkitten/events{/privacy}","received_events_url":"https://api.github.com/users/syberkitten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-06T10:34:17Z","updated_at":"2017-11-06T10:34:17Z","closed_at":null,"author_association":"NONE","body":"Hi\r\nwe are using bulk subscribe to topic, which means it can be an array\r\nof 1-3000 or more topics.\r\n\r\nAedes throws up this, will investigate and try to reproduce\r\n\r\n```\r\nRangeError: Maximum call stack size exceeded\r\n    at isWildcardThatMatchesSys (/home/ubuntu/apps/my-server/node_modules/aedes/lib/handlers/subscribe.js:123:35)\r\n    at SubscribeState.subTopic (/home/ubuntu/apps/my-server/node_modules/aedes/lib/handlers/subscribe.js:103:7)\r\n    at work (/home/ubuntu/apps/my-server/node_modules/fastfall/fall.js:105:23)\r\n    at SubscribeState.storeSubscriptions (/home/ubuntu/apps/my-server/node_modules/aedes/lib/handlers/subscribe.js:71:12)\r\n    at work (/home/ubuntu/apps/my-server/node_modules/fastfall/fall.js:105:23)\r\n    at Aedes.defaultAuthorizeSubscribe [as authorizeSubscribe] (/home/ubuntu/apps/my-server/node_modules/aedes/aedes.js:304:3)\r\n    at SubscribeState.authorize (/home/ubuntu/apps/my-server/node_modules/aedes/lib/handlers/subscribe.js:44:17)\r\n    at Holder.work (/home/ubuntu/apps/my-server/node_modules/fastfall/fall.js:105:23)\r\n    at SubscribeState.compiled (/home/ubuntu/apps/my-server/node_modules/fastfall/fall.js:55:17)\r\n    at SubscribeState.doSubscribe (/home/ubuntu/apps/my-server/node_modules/aedes/lib/handlers/subscribe.js:35:16)\r\n    at makeCall (/home/ubuntu/apps/my-server/node_modules/fastseries/series.js:113:10)\r\n    at SubscribeState.ResultsHolder.release (/home/ubuntu/apps/my-server/node_modules/fastseries/series.js:94:9)\r\n    at work (/home/ubuntu/apps/my-server/node_modules/fastfall/fall.js:121:25)\r\n    at SubscribeState.subTopic (/home/ubuntu/apps/my-server/node_modules/aedes/lib/handlers/subscribe.js:117:5)\r\n    at work (/home/ubuntu/apps/my-server/node_modules/fastfall/fall.js:105:23)\r\n    at SubscribeState.storeSubscriptions (/home/ubuntu/apps/my-server/node_modules/aedes/lib/handlers/subscribe.js:71:12)\r\nerror: Forever detected script exited with code: 1\r\nerror: Script restart attempt #2\r\n```"}}
{"actor":{"display_login":"syberkitten"}}