]> code.citadel.org Git - citadel.git/commitdiff
send space-backspace during keepalives
authorArt Cancro <ajc@citadel.org>
Mon, 28 Dec 1998 23:31:13 +0000 (23:31 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 28 Dec 1998 23:31:13 +0000 (23:31 +0000)
citadel/commands.c

index 3888d9185c55b31da6c3f68c3f6700243b56c01a..ec51dbaafd04613424aea239b94ff2cb0b379289 100644 (file)
@@ -124,6 +124,10 @@ void do_keepalive(void) {
        if ((now - idlet) < ((long)S_KEEPALIVE)) return;
        time(&idlet);
 
+       /* Do a space-backspace to keep socksified telnet sessions open */
+       printf(" %c", 8);
+       fflush(stdout);
+
        if (keepalives_enabled != KA_NO) {
                serv_puts("NOOP");
                if (keepalives_enabled == KA_YES) {