aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-03-20 03:21:51 +0000
committerRoger Dingledine <arma@torproject.org>2007-03-20 03:21:51 +0000
commit93e7627694bc7863d0a1b32e2979bf2f446d3716 (patch)
tree471679b7fbcb7dd89dd0b8f0f97be8203317f049 /src/or/or.h
parentb4f743562f609792619199007c2d091968f72a71 (diff)
downloadtor-93e7627694bc7863d0a1b32e2979bf2f446d3716.tar.gz
tor-93e7627694bc7863d0a1b32e2979bf2f446d3716.zip
a stopgap measure while we wait for proposal 111: apply the
stricter rate limiting to all OR conns except those that have been touched by local circuits. svn:r9882
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 3f76ceaaa6..62a3442c77 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -790,8 +790,11 @@ typedef struct or_connection_t {
char identity_digest[DIGEST_LEN];
char *nickname; /**< Nickname of OR on other side (if any). */
- tor_tls_t *tls; /**< TLS connection state */
- int tls_error; /**< Last tor_tls error code */
+ tor_tls_t *tls; /**< TLS connection state. */
+ int tls_error; /**< Last tor_tls error code. */
+ /** Whether we are using this conn for any client traffic. If we're
+ * not, we can rate limit it further. */
+ uint8_t client_used:1;
time_t timestamp_lastempty; /**< When was the outbuf last completely empty?*/