X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fircd.c;h=2b6427de22592c7848e0ab6fc7fa3e1b5a322cb2;hb=0c50183c885701a84e7369ca05739fec052b7ecc;hp=91ab9b41f6d5de57e42b85ce7153e62713039b5f;hpb=5fc729d47823a57c8e6e0e3b078522eccd120ca7;p=ircu2.10.12-pk.git diff --git a/ircd/ircd.c b/ircd/ircd.c index 91ab9b4..2b6427d 100644 --- a/ircd/ircd.c +++ b/ircd/ircd.c @@ -343,11 +343,10 @@ static void check_pings(struct Event* ev) { /* We don't need to check zombies here */ if (IsNotConn(cptr)) { assert(IsUser(cptr)); - /* for now: reap after fixed time (15 minutes) */ - if ((CurrentTime - cli_user(cptr)->last) >= 900) { + if ((CurrentTime - cli_user(cptr)->last) >= (IsKeepConnEnabled(cptr) ? cptr->keepconn : 300)) { SetFlag(cptr, FLAG_DEADSOCKET); /* this will be used as exit message */ - ircd_strncpy(cli_info(cptr), "Ping timeout", REALLEN); + ircd_strncpy(cli_info(cptr), "Zombie timeout", REALLEN); } else continue; }