/* We don't need to check zombies here */
if (IsNotConn(cptr)) {
assert(IsUser(cptr));
- /* for now: reap after fixed time (5 minutes) */
- if ((CurrentTime - cli_user(cptr)->last) >= 300) {
+ 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;
}