diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-04-10 12:34:28 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-04-13 10:41:14 -0400 |
commit | 9fced56ef1a6eae0ce01de310c871823998bd791 (patch) | |
tree | e361226027bc9275a5d2158a8a08fbfccc3c8b3a /src/or/connection.h | |
parent | 8a852397462e39cfbc21e3cea20ddd39be40598d (diff) | |
download | tor-9fced56ef1a6eae0ce01de310c871823998bd791.tar.gz tor-9fced56ef1a6eae0ce01de310c871823998bd791.zip |
Refactor or_connection token buckets to use token_bucket_t
Diffstat (limited to 'src/or/connection.h')
-rw-r--r-- | src/or/connection.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection.h b/src/or/connection.h index 930e5f81ae..acc63640d1 100644 --- a/src/or/connection.h +++ b/src/or/connection.h @@ -122,7 +122,8 @@ void connection_mark_all_noncontrol_connections(void); ssize_t connection_bucket_write_limit(connection_t *conn, time_t now); int global_write_bucket_low(connection_t *conn, size_t attempt, int priority); void connection_bucket_init(void); -void connection_bucket_refill(int seconds_elapsed, time_t now); +void connection_bucket_refill(int seconds_elapsed, time_t now, + uint32_t now_ts); int connection_handle_read(connection_t *conn); |