Module: sip-router Branch: master Commit: 33c8757246f5a775f6b918f4e629e3c645ad1345 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=33c87572...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Wed Sep 23 21:48:32 2009 +0200
tcp: killed warning
Killed warning for the case when a connection is force closed on purpose (via set_reply_close()).
---
tcp_read.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tcp_read.c b/tcp_read.c index b79e2e2..d201765 100644 --- a/tcp_read.c +++ b/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;