summaryrefslogtreecommitdiff
path: root/src/or/channel.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-23 12:44:18 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-23 12:44:18 -0400
commit17ad309d33561ee255cac70bdb9a19803f2d8c08 (patch)
treece2cc2e2ad455d032290dd204eed3a7b3bad1689 /src/or/channel.c
parentfd9961d220504f81204ab5ad0204cfec8abdb75e (diff)
parenta770b74501a3faf6483c40735b70adae6fb95187 (diff)
downloadtor-17ad309d33561ee255cac70bdb9a19803f2d8c08.tar.gz
tor-17ad309d33561ee255cac70bdb9a19803f2d8c08.zip
Merge remote-tracking branch 'public/bug11553_024' into bug11553_025
Conflicts: src/or/circuitbuild.c
Diffstat (limited to 'src/or/channel.c')
-rw-r--r--src/or/channel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/channel.c b/src/or/channel.c
index 286154cb2c..63af2f91c0 100644
--- a/src/or/channel.c
+++ b/src/or/channel.c
@@ -728,6 +728,9 @@ channel_init(channel_t *chan)
/* Init timestamp */
chan->timestamp_last_added_nonpadding = time(NULL);
+ /* Warn about exhausted circuit IDs no more than hourly. */
+ chan->last_warned_circ_ids_exhausted.rate = 3600;
+
/* Initialize queues. */
TOR_SIMPLEQ_INIT(&chan->incoming_queue);
TOR_SIMPLEQ_INIT(&chan->outgoing_queue);