修复保活时tfe_id错误初始化的问题
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user