{"action":"created","comment":{"url":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/comments/42709642","id":42709642,"diff_hunk":"@@ -2011,6 +2011,17 @@ When exceeding this limit, Nginx will stop running the callbacks of newly expire\n \n This directive was first introduced in the <code>v0.8.0</code> release.\n \n+== lua_semaphore_threshold ==\n+\n+'''syntax:''' ''lua_semaphore_threshold <threshold>''\n+\n+'''default:''' ''lua_semaphore_threshold 100000''\n+\n+'''context:''' ''http''\n+\n+The threshold of lua semaphore.","path":"doc/HttpLuaModule.wiki","position":12,"original_position":12,"commit_id":"09128a6c7bc68188ec1271214ab8be1fb7d20dcf","original_commit_id":"09128a6c7bc68188ec1271214ab8be1fb7d20dcf","user":{"login":"agentzh","id":56241,"avatar_url":"https://avatars.githubusercontent.com/u/56241?v=3","gravatar_id":"","url":"https://api.github.com/users/agentzh","html_url":"https://github.com/agentzh","followers_url":"https://api.github.com/users/agentzh/followers","following_url":"https://api.github.com/users/agentzh/following{/other_user}","gists_url":"https://api.github.com/users/agentzh/gists{/gist_id}","starred_url":"https://api.github.com/users/agentzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agentzh/subscriptions","organizations_url":"https://api.github.com/users/agentzh/orgs","repos_url":"https://api.github.com/users/agentzh/repos","events_url":"https://api.github.com/users/agentzh/events{/privacy}","received_events_url":"https://api.github.com/users/agentzh/received_events","type":"User","site_admin":false},"body":"I'm afraid the \"threshold\" word is quite confusing. Do you mean the maximum count of thresholds allowed in any individual nginx worker? Or something else? Please be explicit.","created_at":"2015-10-22T04:04:22Z","updated_at":"2015-10-22T04:04:22Z","html_url":"https://github.com/openresty/lua-nginx-module/pull/584#discussion_r42709642","pull_request_url":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/584","_links":{"self":{"href":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/comments/42709642"},"html":{"href":"https://github.com/openresty/lua-nginx-module/pull/584#discussion_r42709642"},"pull_request":{"href":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/584"}}},"pull_request":{"url":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/584","id":48292534,"html_url":"https://github.com/openresty/lua-nginx-module/pull/584","diff_url":"https://github.com/openresty/lua-nginx-module/pull/584.diff","patch_url":"https://github.com/openresty/lua-nginx-module/pull/584.patch","issue_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/584","number":584,"state":"open","locked":false,"title":"a simple implement of semaphore in ngx_lua from kugou inc.","user":{"login":"cuiweixie","id":1579517,"avatar_url":"https://avatars.githubusercontent.com/u/1579517?v=3","gravatar_id":"","url":"https://api.github.com/users/cuiweixie","html_url":"https://github.com/cuiweixie","followers_url":"https://api.github.com/users/cuiweixie/followers","following_url":"https://api.github.com/users/cuiweixie/following{/other_user}","gists_url":"https://api.github.com/users/cuiweixie/gists{/gist_id}","starred_url":"https://api.github.com/users/cuiweixie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuiweixie/subscriptions","organizations_url":"https://api.github.com/users/cuiweixie/orgs","repos_url":"https://api.github.com/users/cuiweixie/repos","events_url":"https://api.github.com/users/cuiweixie/events{/privacy}","received_events_url":"https://api.github.com/users/cuiweixie/received_events","type":"User","site_admin":false},"body":"implement basical sempahore operation wait and post,using luajit ffi,and c.","created_at":"2015-10-21T06:28:49Z","updated_at":"2015-10-22T04:04:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f5a023444f18b8c8d0bc24bb37a9257e00ea93d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/584/commits","review_comments_url":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/584/comments","review_comment_url":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/584/comments","statuses_url":"https://api.github.com/repos/openresty/lua-nginx-module/statuses/09128a6c7bc68188ec1271214ab8be1fb7d20dcf","head":{"label":"cuiweixie:master","ref":"master","sha":"09128a6c7bc68188ec1271214ab8be1fb7d20dcf","user":{"login":"cuiweixie","id":1579517,"avatar_url":"https://avatars.githubusercontent.com/u/1579517?v=3","gravatar_id":"","url":"https://api.github.com/users/cuiweixie","html_url":"https://github.com/cuiweixie","followers_url":"https://api.github.com/users/cuiweixie/followers","following_url":"https://api.github.com/users/cuiweixie/following{/other_user}","gists_url":"https://api.github.com/users/cuiweixie/gists{/gist_id}","starred_url":"https://api.github.com/users/cuiweixie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuiweixie/subscriptions","organizations_url":"https://api.github.com/users/cuiweixie/orgs","repos_url":"https://api.github.com/users/cuiweixie/repos","events_url":"https://api.github.com/users/cuiweixie/events{/privacy}","received_events_url":"https://api.github.com/users/cuiweixie/received_events","type":"User","site_admin":false},"repo":{"id":42711889,"name":"lua-nginx-module","full_name":"cuiweixie/lua-nginx-module","owner":{"login":"cuiweixie","id":1579517,"avatar_url":"https://avatars.githubusercontent.com/u/1579517?v=3","gravatar_id":"","url":"https://api.github.com/users/cuiweixie","html_url":"https://github.com/cuiweixie","followers_url":"https://api.github.com/users/cuiweixie/followers","following_url":"https://api.github.com/users/cuiweixie/following{/other_user}","gists_url":"https://api.github.com/users/cuiweixie/gists{/gist_id}","starred_url":"https://api.github.com/users/cuiweixie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuiweixie/subscriptions","organizations_url":"https://api.github.com/users/cuiweixie/orgs","repos_url":"https://api.github.com/users/cuiweixie/repos","events_url":"https://api.github.com/users/cuiweixie/events{/privacy}","received_events_url":"https://api.github.com/users/cuiweixie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cuiweixie/lua-nginx-module","description":"Embed the Power of Lua into NGINX","fork":true,"url":"https://api.github.com/repos/cuiweixie/lua-nginx-module","forks_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/forks","keys_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/teams","hooks_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/hooks","issue_events_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/issues/events{/number}","events_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/events","assignees_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/assignees{/user}","branches_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/branches{/branch}","tags_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/tags","blobs_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/statuses/{sha}","languages_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/languages","stargazers_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/stargazers","contributors_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/contributors","subscribers_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/subscribers","subscription_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/subscription","commits_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/contents/{+path}","compare_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/merges","archive_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/downloads","issues_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/issues{/number}","pulls_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/pulls{/number}","milestones_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/milestones{/number}","notifications_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/labels{/name}","releases_url":"https://api.github.com/repos/cuiweixie/lua-nginx-module/releases{/id}","created_at":"2015-09-18T09:21:29Z","updated_at":"2015-09-18T09:21:32Z","pushed_at":"2015-10-21T03:51:33Z","git_url":"git://github.com/cuiweixie/lua-nginx-module.git","ssh_url":"git@github.com:cuiweixie/lua-nginx-module.git","clone_url":"https://github.com/cuiweixie/lua-nginx-module.git","svn_url":"https://github.com/cuiweixie/lua-nginx-module","homepage":"http://openresty.org","size":13875,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openresty:master","ref":"master","sha":"cecc0e789b12303e4e5f191c4a0308856fb2ffc1","user":{"login":"openresty","id":7390180,"avatar_url":"https://avatars.githubusercontent.com/u/7390180?v=3","gravatar_id":"","url":"https://api.github.com/users/openresty","html_url":"https://github.com/openresty","followers_url":"https://api.github.com/users/openresty/followers","following_url":"https://api.github.com/users/openresty/following{/other_user}","gists_url":"https://api.github.com/users/openresty/gists{/gist_id}","starred_url":"https://api.github.com/users/openresty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openresty/subscriptions","organizations_url":"https://api.github.com/users/openresty/orgs","repos_url":"https://api.github.com/users/openresty/repos","events_url":"https://api.github.com/users/openresty/events{/privacy}","received_events_url":"https://api.github.com/users/openresty/received_events","type":"Organization","site_admin":false},"repo":{"id":613829,"name":"lua-nginx-module","full_name":"openresty/lua-nginx-module","owner":{"login":"openresty","id":7390180,"avatar_url":"https://avatars.githubusercontent.com/u/7390180?v=3","gravatar_id":"","url":"https://api.github.com/users/openresty","html_url":"https://github.com/openresty","followers_url":"https://api.github.com/users/openresty/followers","following_url":"https://api.github.com/users/openresty/following{/other_user}","gists_url":"https://api.github.com/users/openresty/gists{/gist_id}","starred_url":"https://api.github.com/users/openresty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openresty/subscriptions","organizations_url":"https://api.github.com/users/openresty/orgs","repos_url":"https://api.github.com/users/openresty/repos","events_url":"https://api.github.com/users/openresty/events{/privacy}","received_events_url":"https://api.github.com/users/openresty/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openresty/lua-nginx-module","description":"Embed the Power of Lua into NGINX","fork":false,"url":"https://api.github.com/repos/openresty/lua-nginx-module","forks_url":"https://api.github.com/repos/openresty/lua-nginx-module/forks","keys_url":"https://api.github.com/repos/openresty/lua-nginx-module/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openresty/lua-nginx-module/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openresty/lua-nginx-module/teams","hooks_url":"https://api.github.com/repos/openresty/lua-nginx-module/hooks","issue_events_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/events{/number}","events_url":"https://api.github.com/repos/openresty/lua-nginx-module/events","assignees_url":"https://api.github.com/repos/openresty/lua-nginx-module/assignees{/user}","branches_url":"https://api.github.com/repos/openresty/lua-nginx-module/branches{/branch}","tags_url":"https://api.github.com/repos/openresty/lua-nginx-module/tags","blobs_url":"https://api.github.com/repos/openresty/lua-nginx-module/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openresty/lua-nginx-module/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openresty/lua-nginx-module/git/refs{/sha}","trees_url":"https://api.github.com/repos/openresty/lua-nginx-module/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openresty/lua-nginx-module/statuses/{sha}","languages_url":"https://api.github.com/repos/openresty/lua-nginx-module/languages","stargazers_url":"https://api.github.com/repos/openresty/lua-nginx-module/stargazers","contributors_url":"https://api.github.com/repos/openresty/lua-nginx-module/contributors","subscribers_url":"https://api.github.com/repos/openresty/lua-nginx-module/subscribers","subscription_url":"https://api.github.com/repos/openresty/lua-nginx-module/subscription","commits_url":"https://api.github.com/repos/openresty/lua-nginx-module/commits{/sha}","git_commits_url":"https://api.github.com/repos/openresty/lua-nginx-module/git/commits{/sha}","comments_url":"https://api.github.com/repos/openresty/lua-nginx-module/comments{/number}","issue_comment_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/comments{/number}","contents_url":"https://api.github.com/repos/openresty/lua-nginx-module/contents/{+path}","compare_url":"https://api.github.com/repos/openresty/lua-nginx-module/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openresty/lua-nginx-module/merges","archive_url":"https://api.github.com/repos/openresty/lua-nginx-module/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openresty/lua-nginx-module/downloads","issues_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues{/number}","pulls_url":"https://api.github.com/repos/openresty/lua-nginx-module/pulls{/number}","milestones_url":"https://api.github.com/repos/openresty/lua-nginx-module/milestones{/number}","notifications_url":"https://api.github.com/repos/openresty/lua-nginx-module/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openresty/lua-nginx-module/labels{/name}","releases_url":"https://api.github.com/repos/openresty/lua-nginx-module/releases{/id}","created_at":"2010-04-16T15:59:01Z","updated_at":"2015-10-22T02:39:32Z","pushed_at":"2015-10-21T14:17:38Z","git_url":"git://github.com/openresty/lua-nginx-module.git","ssh_url":"git@github.com:openresty/lua-nginx-module.git","clone_url":"https://github.com/openresty/lua-nginx-module.git","svn_url":"https://github.com/openresty/lua-nginx-module","homepage":"http://openresty.org","size":25579,"stargazers_count":1872,"watchers_count":1872,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":418,"mirror_url":null,"open_issues_count":87,"forks":418,"open_issues":87,"watchers":1872,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/584"},"html":{"href":"https://github.com/openresty/lua-nginx-module/pull/584"},"issue":{"href":"https://api.github.com/repos/openresty/lua-nginx-module/issues/584"},"comments":{"href":"https://api.github.com/repos/openresty/lua-nginx-module/issues/584/comments"},"review_comments":{"href":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/584/comments"},"review_comment":{"href":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openresty/lua-nginx-module/pulls/584/commits"},"statuses":{"href":"https://api.github.com/repos/openresty/lua-nginx-module/statuses/09128a6c7bc68188ec1271214ab8be1fb7d20dcf"}}}}