connection is lost.
Save now also the port of the server/router and use that
in comparison as well. Affected file silcd/server_backup.c.
+ * Normal server now reconnects to backup router automatically
+ if connection is lost to it. Affected file silcd/server.c.
+
Thu Sep 26 13:51:02 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
* If packet processing fails (like integrity check fails)
TODO/bugs In SILC Server
========================
- o Normal server doesn't reconnect to backup router if connection was
- lost.
-
o Add support for the <Requested Attributes> in WHOIS. Sending and
reception, with clients and servers should be added.
/* Mark this connection as replaced */
silc_server_backup_replaced_add(server, user_data->id,
backup_router);
+ } else if (server->server_type == SILC_SERVER &&
+ sock->type == SILC_SOCKET_TYPE_ROUTER) {
+ /* Reconnect to the router (backup) */
+ silc_schedule_task_add(server->schedule, 0,
+ silc_server_connect_to_router,
+ server, 1, 0,
+ SILC_TASK_TIMEOUT,
+ SILC_TASK_PRI_NORMAL);
}
if (!backup_router) {