summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author崔一鸣 <[email protected]>2019-09-24 21:09:37 +0800
committer崔一鸣 <[email protected]>2019-09-24 21:09:37 +0800
commit5a32b9ca276d3c6118dcf6abfb7a0b8f73c789eb (patch)
tree20f0f834dca61ecfb94aaed07f76f7c256a94202
parente65880ab16398ee4eff62d88f9a64647b43c3800 (diff)
修复保活时tfe_id错误初始化的问题v2.1.2-20190924
-rw-r--r--entry/src/tfe_mgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/entry/src/tfe_mgr.cpp b/entry/src/tfe_mgr.cpp
index 3ba3287..2fa46bb 100644
--- a/entry/src/tfe_mgr.cpp
+++ b/entry/src/tfe_mgr.cpp
@@ -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);