{"action":"opened","issue":{"url":"https://api.github.com/repos/slact/nchan/issues/123","labels_url":"https://api.github.com/repos/slact/nchan/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/slact/nchan/issues/123/comments","events_url":"https://api.github.com/repos/slact/nchan/issues/123/events","html_url":"https://github.com/slact/nchan/issues/123","id":128343391,"number":123,"title":"nchan crashed when there is no daemon sub processes","user":{"login":"AlexStocks","id":7959374,"avatar_url":"https://avatars.githubusercontent.com/u/7959374?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexStocks","html_url":"https://github.com/AlexStocks","followers_url":"https://api.github.com/users/AlexStocks/followers","following_url":"https://api.github.com/users/AlexStocks/following{/other_user}","gists_url":"https://api.github.com/users/AlexStocks/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexStocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexStocks/subscriptions","organizations_url":"https://api.github.com/users/AlexStocks/orgs","repos_url":"https://api.github.com/users/AlexStocks/repos","events_url":"https://api.github.com/users/AlexStocks/events{/privacy}","received_events_url":"https://api.github.com/users/AlexStocks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-23T18:03:40Z","updated_at":"2016-01-23T18:03:40Z","closed_at":null,"body":"my nginx.conf:\r\ndaemon off;\r\nmaster_process off;\r\n...\r\nhttp {\r\n     ...                                                                                                 \r\n    location /pub  {                                                                                   \r\n        push_publisher;                                                                                \r\n        nchan_channel_id foo;                                                                          \r\n    }                                                                                                  \r\n   ...      \r\n}\r\n\r\nwhen I send the following request to nginx, it crashed:\r\n*curl -d 'hello' 'localhost:8088/pub'*\r\n\r\nAfter I check the nchan source codes, I get the following suspicious crime:\r\n// nchan-master/src/store/memory/store.c:\r\nngx_int_t memstore_channel_owner(ngx_str_t *id) {                                                       \r\n...\r\n  i = h % shdata->max_workers;                                                                          \r\n...                                                                                                  \r\n} \r\n   \r\nAs my nginx conf file, the max_works is zero. In my opinion, maybe you haven't consider such case.\r\n                   "}}