Browse code

tcp: killed warning

Killed warning for the case when a connection is force closed on
purpose (via set_reply_close()).

Andrei Pelinescu-Onciul authored on 23/09/2009 19:48:32
Showing 1 changed files
... ...
@@ -964,7 +964,8 @@ again:
964 964
 			con=(struct tcp_connection*)fm->data;
965 965
 			if (unlikely(con->state==S_CONN_BAD)){
966 966
 				resp=CONN_ERROR;
967
-				LOG(L_WARN, "WARNING: tcp_receive: handle_io: F_TCPCONN"
967
+				if (!(con->send_flags & SND_F_CON_CLOSE))
968
+					LOG(L_WARN, "WARNING: tcp_receive: handle_io: F_TCPCONN"
968 969
 							" connection marked as bad: %p id %d refcnt %d\n",
969 970
 							con, con->id, atomic_get(&con->refcnt));
970 971
 				goto read_error;