@@ -199,13 +199,13 @@ ngx_http_lua_new_thread(ngx_http_request_t *r, lua_State *L, int *ref)
199199 * ref = luaL_ref (L , -2 );
200200
201201 if (* ref == LUA_NOREF ) {
202- lua_settop (L , top ); /* restore main trhead stack */
202+ lua_settop (L , top ); /* restore main thread stack */
203203 return NULL ;
204204 }
205205 }
206206
207- /* pop coroutine refernece on main thread's stack after anchoring it
208- * in registery */
207+ /* pop coroutine reference on main thread's stack after anchoring it
208+ * in registry */
209209 lua_pop (L , 1 );
210210
211211 return cr ;
@@ -488,21 +488,21 @@ init_ngx_lua_registry(ngx_conf_t *cf, lua_State *L)
488488 ngx_log_debug0 (NGX_LOG_DEBUG_HTTP , cf -> log , 0 ,
489489 "lua initializing lua registry" );
490490
491- /* {{{ register table to anchor lua coroutines reliablly :
491+ /* {{{ register a table to anchor lua coroutines reliably :
492492 * {([int]ref) = [cort]} */
493493 lua_newtable (L );
494494 lua_setfield (L , LUA_REGISTRYINDEX , NGX_LUA_CORT_REF );
495495 /* }}} */
496496
497- /* create registry entry for the Lua request ctx data table */
497+ /* create the registry entry for the Lua request ctx data table */
498498 lua_newtable (L );
499499 lua_setfield (L , LUA_REGISTRYINDEX , NGX_LUA_REQ_CTX_REF );
500500
501- /* create registry entry for the Lua socket connection pool table */
501+ /* create the registry entry for the Lua socket connection pool table */
502502 lua_newtable (L );
503503 lua_setfield (L , LUA_REGISTRYINDEX , NGX_LUA_SOCKET_POOL );
504504
505- /* create registry entry for the Lua request ctx data table */
505+ /* create the registry entry for the Lua precompiled regex object cache */
506506 lua_newtable (L );
507507 lua_setfield (L , LUA_REGISTRYINDEX , NGX_LUA_REGEX_CACHE );
508508
0 commit comments