From b56d52a325d67353bafe9f1bfe0c31b6fbef2394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E4=B8=80=E9=B8=A3?= Date: Fri, 21 Jun 2019 15:05:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=9D=E6=B4=BB=E8=BF=87?= =?UTF-8?q?=E7=A8=8B=E4=B8=AD=E4=BB=8Etfe=E6=94=B6=E5=88=B0reset=E5=8C=85?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=B0=86tfe=E7=A7=BB=E9=99=A4=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/tfe_mgr.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/entry/src/tfe_mgr.cpp b/entry/src/tfe_mgr.cpp index 4755c4d..09c5793 100644 --- a/entry/src/tfe_mgr.cpp +++ b/entry/src/tfe_mgr.cpp @@ -124,15 +124,10 @@ static void* thread_tfe_keepalive_recv(void *args){ } if(ret <= 0){ if(errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK){ - KNI_LOG_ERROR(logger, "recv error, errno is %d, errmsg is %s, continue recv, tfe_id is %d", errno, strerror(errno), tfe_id); continue; } - if(errno == ETIMEDOUT){ - KNI_LOG_ERROR(logger, "recv error, errno is %d, errmsg is %s, del tfe alive node, tfe_id is %d", errno, strerror(errno), tfe_id); - break; - } - KNI_LOG_ERROR(logger, "recv error, errno is %d, errmsg is %s, error_out, tfe_id is %d", errno, strerror(errno), tfe_id); - goto error_out; + KNI_LOG_ERROR(logger, "recv error, errno is %d, errmsg is %s, continue recv, tfe_id is %d", errno, strerror(errno), tfe_id); + break; } } //recv fin: del alive node @@ -146,12 +141,6 @@ static void* thread_tfe_keepalive_recv(void *args){ KNI_LOG_ERROR(logger, "Succeed at del tfe alive node, tfe_id is %d", tfe_id); } return NULL; - -error_out: - if(client_fd > 0){ - close(client_fd); - } - return NULL; } static void* thread_tfe_keepalive_accept(void *args){