修复保活时tfe_id错误初始化的问题

This commit is contained in:
崔一鸣
2019-09-24 21:09:37 +08:00
parent e65880ab16
commit 5a32b9ca27

View File

@@ -159,9 +159,9 @@ static void* thread_tfe_keepalive_accept(void *args){
char client_ipaddr_str[INET_ADDRSTRLEN] = "";
int flags, ret, client_fd;
pthread_t thread_id = -1;
int tfe_id = -1;
char *errmsg = NULL;
while(true){
int tfe_id = -1;
client_fd = accept(sockfd, (struct sockaddr *)&client_addr, &client_addr_len);
if(client_fd < 0){
KNI_LOG_ERROR(logger, "Failed at accept, errno is %d, errmsg is %s, tfe_id is %d", errno, strerror(errno), tfe_id);