From f181e793d90c680375e11f621579a29a152f631b Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 19 Dec 2005 12:30:39 +0000 Subject: [PATCH] Better messages during servers connections reset --- ChangeLog | 4 ++++ mbtask/taskibc.c | 14 +++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2eadeeb1..43fd2b52 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ $Id$ v0.83.6 17-Dec-2005 + mbtask: + Better messages during servers connections reset. + + v0.83.5 16-Dec-2005 - 17-Dec-2005 mbtask: diff --git a/mbtask/taskibc.c b/mbtask/taskibc.c index dd09fd16..2b3de840 100644 --- a/mbtask/taskibc.c +++ b/mbtask/taskibc.c @@ -679,7 +679,10 @@ void check_servers(void) } } if (!inlist) { - Syslog('+', "IBC: server %s configuration changed or removed", tnsl->server); + if (local_reset) + Syslog('+', "IBC: server %s connection reset", tnsl->server); + else + Syslog('+', "IBC: server %s configuration changed or removed", tnsl->server); pthread_mutex_lock(&b_mutex); tnsl->remove = TRUE; tnsl->action = now; @@ -698,8 +701,13 @@ void check_servers(void) Remove = TRUE; Syslog('r', "IBC: Remove server %s", tnsl->server); if (tnsl->state == NCS_CONNECT) { - broadcast(tnsl->server, "SQUIT %s Removed from configuration\r\n", tnsl->server); - send_msg(tnsl, "SQUIT %s Your system is removed from configuration\r\n", tnsl->myname); + if (local_reset) { + broadcast(tnsl->server, "SQUIT %s Reset connection\r\n", tnsl->server); + send_msg(tnsl, "SQUIT %s Your system connection is reset\r\n", tnsl->myname); + } else { + broadcast(tnsl->server, "SQUIT %s Removed from configuration\r\n", tnsl->server); + send_msg(tnsl, "SQUIT %s Your system is removed from configuration\r\n", tnsl->myname); + } del_router(&servers, tnsl->server); } if (tnsl->socket != -1) {