[or-cvs] cleanup and a question
Roger Dingledine
arma at seul.org
Tue Mar 22 20:04:03 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:
main.c
Log Message:
cleanup and a question
Index: main.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/main.c,v
retrieving revision 1.465
retrieving revision 1.466
diff -u -d -r1.465 -r1.466
--- main.c 22 Mar 2005 18:56:11 -0000 1.465
+++ main.c 22 Mar 2005 20:04:00 -0000 1.466
@@ -681,19 +681,20 @@
conn->hold_open_until_flushed = 1;
} else if (we_are_hibernating() && !circuit_get_by_conn(conn) &&
!buf_datalen(conn->outbuf)) {
- log_fn(LOG_INFO,"Expiring non-used OR connection to %d (%s:%d). [Hibernating.]",
+ log_fn(LOG_INFO,"Expiring non-used OR connection to %d (%s:%d) [Hibernating or exiting].",
i,conn->address, conn->port);
connection_mark_for_close(conn);
conn->hold_open_until_flushed = 1;
} else if (!clique_mode(options) && !circuit_get_by_conn(conn) &&
(!router || !server_mode(options) || !router_is_clique_mode(router))) {
- log_fn(LOG_INFO,"Expiring non-used connection to %d (%s:%d). [Not in clique mode]",
+ log_fn(LOG_INFO,"Expiring non-used connection to %d (%s:%d) [Not in clique mode].",
i,conn->address, conn->port);
connection_mark_for_close(conn);
conn->hold_open_until_flushed = 1;
} else if (buf_datalen(conn->outbuf) &&
+// XXX will this have races were stuff just got written to the conn and we kill it?
now >= conn->timestamp_lastwritten + options->KeepalivePeriod*10) {
- log_fn(LOG_INFO,"Expiriing stuck connection to %d (%s:%d).",
+ log_fn(LOG_INFO,"Expiring stuck connection to %d (%s:%d).",
i, conn->address, conn->port);
connection_mark_for_close(conn);
} else {
More information about the tor-commits
mailing list