summaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-02-06 00:27:03 +0000
committerRoger Dingledine <arma@torproject.org>2007-02-06 00:27:03 +0000
commit9aa8e490f87a27d81dbc0863b39f6b9d0da695bb (patch)
tree539be094a718f7bd6fb839349842037ecad82d91 /src/or/connection_or.c
parent6a2fe560158513e9142bd38a1a43535d87c4a825 (diff)
downloadtor-9aa8e490f87a27d81dbc0863b39f6b9d0da695bb.tar.gz
tor-9aa8e490f87a27d81dbc0863b39f6b9d0da695bb.zip
cleanups based on looking through svn commits
svn:r9491
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r--src/or/connection_or.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index b234e906a7..d171914860 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -779,9 +779,14 @@ connection_or_send_destroy(uint16_t circ_id, or_connection_t *conn, int reason)
return 0;
}
-/** DOCDOC */
+/** A high waterlevel for whether to refill this OR connection
+ * with more directory information, if any is pending. */
#define BUF_FULLNESS_THRESHOLD (128*1024)
-/** DOCDOC */
+/** A bottom waterlevel for whether to refill this OR connection
+ * with more directory information, if any is pending. We don't want
+ * to make this too low, since we already run the risk of starving
+ * the pending dir connections if the OR conn is frequently busy with
+ * other things. */
#define BUF_EMPTINESS_THRESHOLD (96*1024)
/** Return true iff there is so much data waiting to be flushed on <b>conn</b>