[or-cvs] allow servers to publish descriptors from 12 hours in the f...
Roger Dingledine
arma at seul.org
Thu Apr 7 21:01:02 UTC 2005
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
dirserv.c relay.c
Log Message:
allow servers to publish descriptors from 12 hours in the future.
hopefully this will allow more slack and let crummier servers help
out too.
Index: dirserv.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/dirserv.c,v
retrieving revision 1.155
retrieving revision 1.156
diff -u -d -r1.155 -r1.156
--- dirserv.c 6 Apr 2005 21:09:47 -0000 1.155
+++ dirserv.c 7 Apr 2005 21:00:59 -0000 1.156
@@ -12,7 +12,7 @@
**/
/** How far in the future do we allow a router to get? (seconds) */
-#define ROUTER_ALLOW_SKEW (30*60)
+#define ROUTER_ALLOW_SKEW (60*60*12) /* 12 hours */
/** How many seconds do we wait before regenerating the directory? */
#define DIR_REGEN_SLACK_TIME 10
Index: relay.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/relay.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- relay.c 7 Apr 2005 20:25:22 -0000 1.64
+++ relay.c 7 Apr 2005 21:01:00 -0000 1.65
@@ -748,7 +748,7 @@
}
log_fn(LOG_WARN,"Got an unexpected relay command %d, in state %d (%s). Closing.",
- rh->command, conn->state, conn_state_to_string(conn->type, conn->state));
+ rh->command, conn->state, conn_state_to_string(conn->type, conn->state));
connection_edge_end(conn, END_STREAM_REASON_TORPROTOCOL, conn->cpath_layer);
connection_mark_for_close(conn);
return -1;
More information about the tor-commits
mailing list