mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
Add a server scope for Lua states (in LuaScope), which creates a pool of states with manageable minimum and maximum size.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1369656 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#include "apr_file_info.h"
|
||||
#include "apr_time.h"
|
||||
#include "apr_hooks.h"
|
||||
#include "apr_reslist.h"
|
||||
|
||||
/* Allow for Lua 5.2 backwards compatibility */
|
||||
#define LUA_COMPAT_ALL
|
||||
@@ -111,6 +112,8 @@ typedef struct
|
||||
* AP_LUA_SCOPE_ONCE | AP_LUA_SCOPE_REQUEST | AP_LUA_SCOPE_CONN | AP_LUA_SCOPE_SERVER
|
||||
*/
|
||||
unsigned int vm_scope;
|
||||
unsigned int vm_min;
|
||||
unsigned int vm_max;
|
||||
|
||||
/* info for the hook harnesses */
|
||||
apr_hash_t *hooks; /* <wombat_hook_info> */
|
||||
|
Reference in New Issue
Block a user