From 5a36cc38a73f5092e57f587b2d665cfd04e70cbb Mon Sep 17 00:00:00 2001 From: zhengchao Date: Fri, 25 Jan 2019 15:31:34 +0600 Subject: [PATCH] =?UTF-8?q?#45=20sendmsg=E5=A4=B1=E8=B4=A5=E6=97=B6?= =?UTF-8?q?=E5=9B=9E=E6=94=B6unix=20domain=20socket?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kni_intercept.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kni_intercept.c b/kni_intercept.c index 11cee23..7a5e762 100644 --- a/kni_intercept.c +++ b/kni_intercept.c @@ -1488,6 +1488,8 @@ int tcp_repair_process(const struct streaminfo* pstream,const void* a_packet,str if(ret<0) { kni_filestate2_set(0,FS_REPAIR_SEND_ERR,0,2); + close(g_kni_comminfo.fd_domain); + g_kni_comminfo.fd_domain=-1; g_kni_comminfo.kni_mode_cur=KNI_MODE_BYPASS; } else