浏览代码

tcp: killed warning

Killed warning for the case when a connection is force closed on
purpose (via set_reply_close()).
Andrei Pelinescu-Onciul 16 年之前
父节点
当前提交
33c8757246
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tcp_read.c

+ 2 - 1
tcp_read.c

@@ -964,7 +964,8 @@ again:
 			con=(struct tcp_connection*)fm->data;
 			if (unlikely(con->state==S_CONN_BAD)){
 				resp=CONN_ERROR;
-				LOG(L_WARN, "WARNING: tcp_receive: handle_io: F_TCPCONN"
+				if (!(con->send_flags & SND_F_CON_CLOSE))
+					LOG(L_WARN, "WARNING: tcp_receive: handle_io: F_TCPCONN"
 							" connection marked as bad: %p id %d refcnt %d\n",
 							con, con->id, atomic_get(&con->refcnt));
 				goto read_error;