aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-01-23 09:23:04 +0000
committerRoger Dingledine <arma@torproject.org>2006-01-23 09:23:04 +0000
commitde13ddd26f6919ef1d1cc434cd68bf17229b116e (patch)
treefbefe1c55439a969e59b403bedbb854131ba4e49 /src/or/main.c
parent45757dafb7287f1d9215a116a792c2fc717d2a59 (diff)
downloadtor-de13ddd26f6919ef1d1cc434cd68bf17229b116e.tar
tor-de13ddd26f6919ef1d1cc434cd68bf17229b116e.tar.gz
Stop complaining loudly whenever some poor client falls off
the network before we finish writing to him. svn:r5850
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 4914bd262..8a958ed86 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -482,6 +482,7 @@ conn_close_if_marked(int i)
if (connection_wants_to_flush(conn)) {
int severity;
if (conn->type == CONN_TYPE_EXIT ||
+ (conn->type == CONN_TYPE_OR && server_mode(get_options())) ||
(conn->type == CONN_TYPE_DIR && conn->purpose == DIR_PURPOSE_SERVER))
severity = LOG_INFO;
else
@@ -786,6 +787,8 @@ run_scheduled_events(time_t now)
/* Only caches actually need to fetch directories now. */
if (options->DirPort && !options->V1AuthoritativeDir) {
+ /* XXX actually, we should only do this if we want to advertise
+ * our dirport. not simply if we configured one. -RD */
directory_get_from_dirserver(DIR_PURPOSE_FETCH_DIR, NULL, 1);
}