Parcourir la source

Increased the cell limit when reading from the socket

Steven Engler il y a 4 ans
Parent
commit
78b6ca5730
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/core/or/safe_connection.c

+ 2 - 2
src/core/or/safe_connection.c

@@ -864,8 +864,8 @@ safe_or_connection_max_bytes_can_read(safe_or_connection_t *safe_or_conn,
     get_cell_network_size(safe_or_conn->wide_circ_ids?1:0);
   size_t bucket_max = token_bucket_rw_get_read(&safe_or_conn->bucket);
 
-  size_t rv = 32*cell_network_size;
-  // this is the limit that 'connection_bucket_get_share()' uses
+  size_t rv = 1024*cell_network_size;
+  // this is the x32 the limit that 'connection_bucket_get_share()' uses
 
   if (use_conn_buckets && rv > bucket_max) {
     rv = bucket_max;