From 6090f7d9de0c71b25bd66c3525b25de7d02a5aa1 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Mon, 17 Jul 2017 16:08:45 +0200 Subject: [PATCH] core: tcp read - set own handling for ECONNRESET --- src/core/tcp_read.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/tcp_read.c b/src/core/tcp_read.c index 77c63449b68..db3707b39e9 100644 --- a/src/core/tcp_read.c +++ b/src/core/tcp_read.c @@ -278,6 +278,12 @@ int tcp_read_data(int fd, struct tcp_connection *c, switch(errno){ case ECONNRESET: TCP_STATS_CON_RESET(); +#ifdef USE_DST_BLACKLIST + dst_blacklist_su(BLST_ERR_SEND, c->rcv.proto, + &c->rcv.src_su, + &c->send_flags, 0); +#endif /* USE_DST_BLACKLIST */ + break; case ETIMEDOUT: #ifdef USE_DST_BLACKLIST dst_blacklist_su(BLST_ERR_SEND, c->rcv.proto,