Skip to content

Commit

Permalink
core: tcp read - set own handling for ECONNRESET
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jul 17, 2017
1 parent de8cd07 commit 6090f7d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/tcp_read.c
Expand Up @@ -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,
Expand Down

0 comments on commit 6090f7d

Please sign in to comment.