updates.
authorPekka Riikonen <priikone@silcnet.org>
Tue, 29 Jan 2002 21:45:37 +0000 (21:45 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 29 Jan 2002 21:45:37 +0000 (21:45 +0000)
CHANGES
apps/irssi/src/fe-common/core/completion.c
apps/silcd/server.c

diff --git a/CHANGES b/CHANGES
index c6eef9a96d805117101f94c5e7ca11c1460fbadf..e8da703f168adfdd5afd817bbeda14418e956fcc 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -10,6 +10,11 @@ Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
 
        * Removed TRQ from lib/trq, not needed anymore.
 
+       * Do more frequent heartbeats (5 minutes instead of 10 minutes)
+         with server connections.  Later this will be configurable
+         in config file after new config file is done.  Affected file
+         silcd/server.c.
+
 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
 
        * Fixed a crash in server related to channel announcements.
index 1642761033d2e2472a29ee0bc30e32fee03a1a6d..cd86ab4f7438b8a6b2375b4ffc0408eff64dfbb8 100644 (file)
@@ -535,6 +535,9 @@ static void sig_complete_word(GList **list, WINDOW_REC *window,
        }
 
        /* check only for /command completions from now on */
+       if (*linestart == '\0')
+               return;
+
         cmdchars = strchr(cmdchars, *linestart);
        if (cmdchars == NULL) return;
 
index 9df0dd455a1146a1ff5c3b09477fcda1ad9195bf..409a8afca42570ac9bf61604db8f92b7511f1f69 100644 (file)
@@ -952,7 +952,7 @@ SILC_TASK_CALLBACK(silc_server_connect_to_router_final)
      timeout!! */
   hb_context = silc_calloc(1, sizeof(*hb_context));
   hb_context->server = server;
-  silc_socket_set_heartbeat(sock, 600, hb_context,
+  silc_socket_set_heartbeat(sock, 300, hb_context,
                            silc_server_perform_heartbeat,
                            server->schedule);
 
@@ -1462,7 +1462,7 @@ SILC_TASK_CALLBACK(silc_server_accept_new_connection_final)
      timeout!! */
   hb_context = silc_calloc(1, sizeof(*hb_context));
   hb_context->server = server;
-  silc_socket_set_heartbeat(sock, 600, hb_context,
+  silc_socket_set_heartbeat(sock, 400, hb_context,
                            silc_server_perform_heartbeat,
                            server->schedule);