diff options
| author | zhengchao <[email protected]> | 2018-09-29 16:46:58 +0800 |
|---|---|---|
| committer | zhengchao <[email protected]> | 2018-09-29 16:46:58 +0800 |
| commit | e1a22d5412a56ad7a74bed7223f34ae4ceb5f163 (patch) | |
| tree | 6472976c1aa31771528b5f9bf6fd9f539d96fe1f /platform/src/key_keeper.cpp | |
| parent | 5958c7fab1c72f73ea503e6a419f5cfb554a2141 (diff) | |
修改http reject的模板,可以显示预配置的字符串。修改key keeper初始化MESA_htable的默认大小和超时。
Diffstat (limited to 'platform/src/key_keeper.cpp')
| -rw-r--r-- | platform/src/key_keeper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/src/key_keeper.cpp b/platform/src/key_keeper.cpp index d374bf4..dacb91d 100644 --- a/platform/src/key_keeper.cpp +++ b/platform/src/key_keeper.cpp @@ -490,8 +490,8 @@ struct key_keeper* key_keeper_init(const char * profile, const char* section, vo MESA_load_profile_string_def(profile, section, "untrusted_ca_path", keeper->untrusted_ca_path, sizeof(keeper->untrusted_ca_path), "./conf/mesalab-ca.pem"); MESA_load_profile_string_def(profile, section, "cert_store_host", keeper->cert_store_host, sizeof(keeper->cert_store_host), "xxxxx"); MESA_load_profile_uint_def(profile, section, "cert_store_port", &(keeper->cert_store_port), 80); - MESA_load_profile_uint_def(profile, section, "hash_slot_size", &(keeper->hash_slot_size), 16); - MESA_load_profile_uint_def(profile, section, "hash_expire_seconds", &(keeper->hash_expire_seconds), 16); + MESA_load_profile_uint_def(profile, section, "hash_slot_size", &(keeper->hash_slot_size), 1024*128); + MESA_load_profile_uint_def(profile, section, "hash_expire_seconds", &(keeper->hash_expire_seconds), 5*60); keeper->htable = create_hash_table(keeper->hash_slot_size, keeper->hash_expire_seconds); TFE_LOG_INFO(logger, "MESA_load_profile, [%s]: mode:%s, ca_path:%s, untrusted_ca_path:%s, cert_store_host:%s, cert_store_port:%d, hash_slot_size:%d, hash_expire_seconds:%d", section, keeper->mode, keeper->ca_path, keeper->untrusted_ca_path, keeper->cert_store_host, keeper->cert_store_port, keeper->hash_slot_size, keeper->hash_expire_seconds); |
