1.添加Redis分布式锁接口,代码宏控制启动(目前非启用)

(存在问题1.由于redis异步,锁存在内容较高,加锁后影响性能较严重
          2.不是每次锁都能成功)
2.添加显示接口中,openssl生成证书时间信息输出(生成证书总时间/生成证书次数)
This commit is contained in:
fengweihao
2018-07-09 14:32:41 +08:00
parent d02f57e5ee
commit 6a98d2a041
11 changed files with 381 additions and 50 deletions

View File

@@ -15,6 +15,8 @@
#include <x509.h>
#include <evp.h>
#include "rd_lock.h"
struct request_t{
#define DATALEN 64
char host[DATALEN];
@@ -25,6 +27,8 @@ struct request_t{
int valid;
struct rd_lock_scb mtx;
struct evhttp_request *evh_req;
};