1.添加Redis分布式锁接口,代码宏控制启动(目前非启用)
(存在问题1.由于redis异步,锁存在内容较高,加锁后影响性能较严重
2.不是每次锁都能成功)
2.添加显示接口中,openssl生成证书时间信息输出(生成证书总时间/生成证书次数)
This commit is contained in:
@@ -12,22 +12,6 @@
|
||||
#include "MESA_list_queue.h"
|
||||
#include "rt_sync.h"
|
||||
|
||||
enum conn_states {
|
||||
conn_listening, /**< the socket which listens for connections */
|
||||
conn_new_cmd, /**< Prepare connection for next command */
|
||||
conn_waiting, /**< waiting for a readable socket */
|
||||
conn_read, /**< reading in a command line */
|
||||
conn_parse_cmd, /**< try to parse a command from the input buffer */
|
||||
conn_write, /**< writing out a simple response */
|
||||
conn_nread, /**< reading in a fixed number of bytes */
|
||||
conn_swallow, /**< swallowing unnecessary bytes w/o storing */
|
||||
conn_closing, /**< closing this connection */
|
||||
conn_mwrite, /**< writing out many items sequentially */
|
||||
conn_closed, /**< connection is closed */
|
||||
conn_watch, /**< held by the logger thread as a watcher */
|
||||
conn_max_state /**< Max state value (used for assertion) */
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
int id;
|
||||
|
||||
@@ -43,11 +27,16 @@ typedef struct {
|
||||
|
||||
struct redisAsyncContext *cl_ctx;
|
||||
|
||||
struct redisContext *sync;
|
||||
|
||||
void * (*routine)(void *); /** Executive entry */
|
||||
|
||||
int field_ids; /* dispaly */
|
||||
|
||||
int column_ids;
|
||||
|
||||
uint64_t diffTime;
|
||||
|
||||
} libevent_thread;
|
||||
|
||||
extern int cert_session_init();
|
||||
|
||||
Reference in New Issue
Block a user