diff options
author | Roger Dingledine <arma@torproject.org> | 2007-03-20 03:21:51 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-03-20 03:21:51 +0000 |
commit | 93e7627694bc7863d0a1b32e2979bf2f446d3716 (patch) | |
tree | 471679b7fbcb7dd89dd0b8f0f97be8203317f049 /src/or/connection_edge.c | |
parent | b4f743562f609792619199007c2d091968f72a71 (diff) | |
download | tor-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/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index beb1caeea6..44c3197b5c 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -1792,6 +1792,11 @@ connection_ap_handshake_send_begin(edge_connection_t *ap_conn, log_info(LD_APP,"Address/port sent, ap socket %d, n_circ_id %d", ap_conn->_base.s, circ->_base.n_circ_id); control_event_stream_status(ap_conn, STREAM_EVENT_SENT_CONNECT, 0); + + if ((TO_CIRCUIT(circ))->n_conn) { + /* mark it so it gets better rate limiting treatment. */ + (TO_CIRCUIT(circ))->n_conn->client_used = 1; + } return 0; } |