@@ -224,6 +224,14 @@ static ngx_command_t ngx_http_clojure_commands[] = {
224
224
offsetof(ngx_http_clojure_main_conf_t , jvm_init_handler_code ),
225
225
NULL
226
226
},
227
+ {
228
+ ngx_string ("jvm_init_handler_property" ),
229
+ NGX_HTTP_MAIN_CONF | NGX_CONF_TAKE2 ,
230
+ ngx_conf_set_keyval_slot ,
231
+ NGX_HTTP_MAIN_CONF_OFFSET ,
232
+ offsetof(ngx_http_clojure_main_conf_t , jvm_init_handler_properties ),
233
+ NULL
234
+ },
227
235
{
228
236
ngx_string ("jvm_exit_handler_name" ),
229
237
NGX_HTTP_MAIN_CONF | NGX_CONF_TAKE1 ,
@@ -240,6 +248,14 @@ static ngx_command_t ngx_http_clojure_commands[] = {
240
248
offsetof(ngx_http_clojure_main_conf_t , jvm_exit_handler_code ),
241
249
NULL
242
250
},
251
+ {
252
+ ngx_string ("jvm_exit_handler_property" ),
253
+ NGX_HTTP_MAIN_CONF | NGX_CONF_TAKE2 ,
254
+ ngx_conf_set_keyval_slot ,
255
+ NGX_HTTP_MAIN_CONF_OFFSET ,
256
+ offsetof(ngx_http_clojure_main_conf_t , jvm_exit_handler_properties ),
257
+ NULL
258
+ },
243
259
{
244
260
ngx_string ("handlers_lazy_init" ),
245
261
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_CONF_TAKE1 ,
@@ -1298,13 +1314,13 @@ static ngx_int_t ngx_http_clojure_process_init(ngx_cycle_t *cycle) {
1298
1314
1299
1315
if (mcf -> enable_init_handler
1300
1316
&& ngx_http_clojure_init_clojure_script (NGX_HTTP_INIT_PROCESS_PHASE , "init-process" , & mcf -> jvm_handler_type , & mcf -> jvm_init_handler_name ,
1301
- & mcf -> jvm_init_handler_code , NULL , & mcf -> jvm_init_handler_id , cycle -> log ) != NGX_HTTP_CLOJURE_JVM_OK ) {
1317
+ & mcf -> jvm_init_handler_code , mcf -> jvm_init_handler_properties , & mcf -> jvm_init_handler_id , cycle -> log ) != NGX_HTTP_CLOJURE_JVM_OK ) {
1302
1318
return NGX_ERROR ;
1303
1319
}
1304
1320
1305
1321
if (mcf -> enable_exit_handler
1306
1322
&& ngx_http_clojure_init_clojure_script (NGX_HTTP_EXIT_PROCESS_PHASE , "exit-process" , & mcf -> jvm_handler_type , & mcf -> jvm_exit_handler_name ,
1307
- & mcf -> jvm_exit_handler_code , NULL , & mcf -> jvm_exit_handler_id , cycle -> log ) != NGX_HTTP_CLOJURE_JVM_OK ) {
1323
+ & mcf -> jvm_exit_handler_code , mcf -> jvm_exit_handler_properties , & mcf -> jvm_exit_handler_id , cycle -> log ) != NGX_HTTP_CLOJURE_JVM_OK ) {
1308
1324
return NGX_ERROR ;
1309
1325
}
1310
1326
0 commit comments