[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] on HUP, retry OR connections, and stop clobbering the dirse...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] on HUP, retry OR connections, and stop clobbering the dirse...
- From: arma@seul.org (Roger Dingledine)
- Date: Sat, 13 Dec 2003 23:33:20 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sat, 13 Dec 2003 23:33:35 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
	main.c 
Log Message:
on HUP, retry OR connections, and stop clobbering the dirserver's routerlist
Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.155
retrieving revision 1.156
diff -u -d -r1.155 -r1.156
--- main.c	6 Dec 2003 05:54:04 -0000	1.155
+++ main.c	14 Dec 2003 04:33:18 -0000	1.156
@@ -481,7 +481,9 @@
         /* no need to provide argc/v, they've been cached inside init_from_config */
         exit(1);
       }
-
+      if(options.ORPort) {
+        router_retry_connections();
+      }
       if(options.DirPort) {
         /* reload the fingerprint file */
         char keydir[512];
@@ -490,11 +492,6 @@
         if(dirserv_parse_fingerprint_file(keydir) < 0) {
           log_fn(LOG_WARN, "Error reloading fingerprints. Continuing with old list.");
         }
-
-        /* XXX do we really want to be resetting the routerlist here? */
-        if(router_set_routerlist_from_file(options.RouterFile) < 0) {
-          log(LOG_WARN,"Error reloading router list. Continuing with old list.");
-        }
       } else {
         /* fetch a new directory */
         directory_initiate_command(router_pick_directory_server(), DIR_CONN_STATE_CONNECTING_FETCH);