[Date Prev] [Date Index] [Date Next] [Thread Prev] [Thread Index] [Thread Next]
Bryan Stansell bryan@conserver.com
Sat, 24 Sep 2005 13:34:37 -0700 (PDT)
here's a patch (against 8.1.12) to fix the idletimeout issue...it'll be in the next release, but figured some would like it now. Index: group.c =================================================================== RCS file: /home/bryan/cvsroot/conserver/conserver/group.c,v retrieving revision 5.318 diff -c -r5.318 group.c *** group.c 8 Jun 2005 18:09:40 -0000 5.318 --- group.c 24 Sep 2005 20:26:31 -0000 *************** *** 2520,2525 **** --- 2520,2535 ---- CONDDEBUG((1, "DoConsoleRead(): read %d bytes from fd %d", nr, cofile)); + if (nr > 0) { + pCEServing->lastWrite = time((time_t *)0); + if (pCEServing->idletimeout != (time_t)0 && + (timers[T_CIDLE] == (time_t)0 || + timers[T_CIDLE] > + pCEServing->lastWrite + pCEServing->idletimeout)) + timers[T_CIDLE] = + pCEServing->lastWrite + pCEServing->idletimeout; + } + if (pCEServing->type == HOST && pCEServing->raw != FLAGTRUE) { /* Do a little Telnet Protocol interpretation * state = 0: normal Bryan