aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2022-03-16 13:35:33 -0400
committerDavid Goulet <dgoulet@torproject.org>2022-03-16 13:35:33 -0400
commitf64a88e72d691cabc88544d7cb3f85c89573ed90 (patch)
tree855513072d37d43a22ef79f5759b7985ded4a378 /src/core
parenta91bdca1a41960b3857847fd87ef0bbea4c6e45e (diff)
parent2905e7667e9e17d69ae1d23dbc970d1efe2d3d7e (diff)
downloadtor-f64a88e72d691cabc88544d7cb3f85c89573ed90.tar.gz
tor-f64a88e72d691cabc88544d7cb3f85c89573ed90.zip
Merge branch 'tor-gitlab/mr/490'
Diffstat (limited to 'src/core')
-rw-r--r--src/core/or/congestion_control_common.c2
-rw-r--r--src/core/or/congestion_control_flow.c2
-rw-r--r--src/core/or/congestion_control_nola.c2
-rw-r--r--src/core/or/congestion_control_st.h16
-rw-r--r--src/core/or/congestion_control_westwood.c14
-rw-r--r--src/core/or/dos.c2
-rw-r--r--src/core/or/edge_connection_st.h2
-rw-r--r--src/core/or/half_edge_st.h2
-rw-r--r--src/core/or/lttng_cc.inc2
9 files changed, 22 insertions, 22 deletions
diff --git a/src/core/or/congestion_control_common.c b/src/core/or/congestion_control_common.c
index 36099cc1c6..54de48b39d 100644
--- a/src/core/or/congestion_control_common.c
+++ b/src/core/or/congestion_control_common.c
@@ -376,7 +376,7 @@ congestion_control_new(const circuit_params_t *params, cc_path_t path)
}
/**
- * Free a congestion control object and its asssociated state.
+ * Free a congestion control object and its associated state.
*/
void
congestion_control_free_(congestion_control_t *cc)
diff --git a/src/core/or/congestion_control_flow.c b/src/core/or/congestion_control_flow.c
index 035337b55e..ea2c0df42c 100644
--- a/src/core/or/congestion_control_flow.c
+++ b/src/core/or/congestion_control_flow.c
@@ -235,7 +235,7 @@ circuit_send_stream_xon(edge_connection_t *stream)
* Process a stream XOFF, parsing it, and then stopping reading on
* the edge connection.
*
- * Record that we have recieved an xoff, so we know not to resume
+ * Record that we have received an xoff, so we know not to resume
* reading on this edge conn until we get an XON.
*
* Returns false if the XOFF did not validate; true if it does.
diff --git a/src/core/or/congestion_control_nola.c b/src/core/or/congestion_control_nola.c
index 0c64793d91..53bbf9e7b4 100644
--- a/src/core/or/congestion_control_nola.c
+++ b/src/core/or/congestion_control_nola.c
@@ -53,7 +53,7 @@ congestion_control_nola_set_params(congestion_control_t *cc)
*
* To handle the case where the local orconn blocks, TOR_NOLA uses
* the 'piecewise' BDP estimate, which uses more a conservative BDP
-* estimate method when blocking occurrs, but a more aggressive BDP
+* estimate method when blocking occurs, but a more aggressive BDP
* estimate when there is no local blocking. This minimizes local
* client queues.
*/
diff --git a/src/core/or/congestion_control_st.h b/src/core/or/congestion_control_st.h
index 2c905772c1..bc547b59d9 100644
--- a/src/core/or/congestion_control_st.h
+++ b/src/core/or/congestion_control_st.h
@@ -19,12 +19,12 @@ typedef enum {
CC_ALG_SENDME = 0,
/**
- * Prop#324 TOR_WESTWOOD - Deliberately agressive. Westwood may not even
+ * Prop#324 TOR_WESTWOOD - Deliberately aggressive. Westwood may not even
* converge to fairness in some cases because max RTT will also increase
- * on congesgtion, which boosts the Westwood RTT congestion threshhold. So it
+ * on congestion, which boosts the Westwood RTT congestion threshold. So it
* can cause runaway queue bloat, which may or may not lead to a robot
* uprising... Ok that's Westworld, not Westwood. Still, we need to test
- * Vegas and NOLA against something more agressive to ensure they do not
+ * Vegas and NOLA against something more aggressive to ensure they do not
* starve in the presence of cheaters. We also need to make sure cheaters
* trigger the oomkiller in those cases.
*/
@@ -32,7 +32,7 @@ typedef enum {
/**
* Prop#324 TOR_VEGAS - TCP Vegas-style BDP tracker. Because Vegas backs off
- * whenever it detects queue delay, it can be beaten out by more agressive
+ * whenever it detects queue delay, it can be beaten out by more aggressive
* algs. However, in live network testing, it seems to do just fine against
* current SENDMEs. It outperforms Westwood and does not stall. */
CC_ALG_VEGAS = 2,
@@ -40,7 +40,7 @@ typedef enum {
/**
* Prop#324: TOR_NOLA - NOLA looks the BDP right in the eye and uses it
* immediately as CWND. No slow start, no other congestion signals, no delay,
- * no bullshit. Like TOR_VEGAS, it also uses agressive BDP estimates, to
+ * no bullshit. Like TOR_VEGAS, it also uses aggressive BDP estimates, to
* avoid out-competition. It seems a bit better throughput than Vegas,
* but its agressive BDP and rapid updates may lead to more queue latency. */
CC_ALG_NOLA = 3,
@@ -147,7 +147,7 @@ struct congestion_control_t {
/**
* For steady-state: the number of sendme acks until we will acknowledge
* a congestion event again. It starts out as the number of sendme acks
- * in a congestion windowm and is decremented each ack. When this reaches
+ * in a congestion window and is decremented each ack. When this reaches
* 0, it means we should examine our congestion algorithm conditions.
* In this way, we only react to one congestion event per congestion window.
*
@@ -193,7 +193,7 @@ struct congestion_control_t {
bdp_alg_t bdp_alg;
/** Algorithm-specific parameters. The specific struct that is used
- * depends upon the algoritghm selected by the cc_alg parameter.
+ * depends upon the algorithm selected by the cc_alg parameter.
* These should not be accessed anywhere other than the algorithm-specific
* files. */
union {
@@ -204,7 +204,7 @@ struct congestion_control_t {
};
/**
- * Returns the number of sendme acks we will recieve before we update cwnd.
+ * Returns the number of sendme acks we will receive before we update cwnd.
*
* Congestion control literature recommends only one update of cwnd per
* cwnd worth of acks. However, we can also tune this to be more frequent
diff --git a/src/core/or/congestion_control_westwood.c b/src/core/or/congestion_control_westwood.c
index 2e4575554a..e57a661b85 100644
--- a/src/core/or/congestion_control_westwood.c
+++ b/src/core/or/congestion_control_westwood.c
@@ -65,10 +65,10 @@ congestion_control_westwood_set_params(congestion_control_t *cc)
}
/**
- * Return the RTT threshhold that signals congestion.
+ * Return the RTT threshold that signals congestion.
*
* Computed from the threshold parameter that specifies a
- * percent between the min and max RTT obseved so far.
+ * percent between the min and max RTT observed so far.
*/
static inline uint64_t
westwood_rtt_signal(const congestion_control_t *cc)
@@ -111,7 +111,7 @@ westwood_is_congested(const congestion_control_t *cc)
westwood_rtt_signal(cc) - cc->min_rtt_usec < USEC_ONE_MS)
return false;
- /* If the EWMA-smoothed RTT exceeds the westwood RTT threshhold,
+ /* If the EWMA-smoothed RTT exceeds the westwood RTT threshold,
* then it is congestion. */
if (cc->ewma_rtt_usec > westwood_rtt_signal(cc))
return true;
@@ -123,11 +123,11 @@ westwood_is_congested(const congestion_control_t *cc)
* Process a SENDME and update the congestion window according to the
* rules specified in TOR_WESTWOOD of Proposal #324.
*
- * Essentially, this algorithm uses a threshhold of 'rtt_thresh', which
+ * Essentially, this algorithm uses a threshold of 'rtt_thresh', which
* is a midpoint between the min and max RTT. If the RTT exceeds this
- * threshhold, then queue delay due to congestion is assumed to be present,
- * and the algirithm reduces the congestion window. If the RTT is below the
- * threshhold, the circuit is not congested (ie: queue delay is low), and we
+ * threshold, then queue delay due to congestion is assumed to be present,
+ * and the algorithm reduces the congestion window. If the RTT is below the
+ * threshold, the circuit is not congested (ie: queue delay is low), and we
* increase the congestion window.
*
* The congestion window is updated only once every congestion window worth of
diff --git a/src/core/or/dos.c b/src/core/or/dos.c
index e8652c901e..2eb5782481 100644
--- a/src/core/or/dos.c
+++ b/src/core/or/dos.c
@@ -513,7 +513,7 @@ conn_update_on_connect(conn_client_stats_t *stats, const tor_addr_t *addr)
/* Assess connect counter. Mark it if counter is down to 0 and we haven't
* marked it before or it was reset. This is to avoid to re-mark it over and
- * over again extending continously the blocked time. */
+ * over again extending continuously the blocked time. */
if (token_bucket_ctr_get(&stats->connect_count) == 0 &&
stats->marked_until_ts == 0) {
conn_mark_client(stats);
diff --git a/src/core/or/edge_connection_st.h b/src/core/or/edge_connection_st.h
index dab32fc8d0..942991f139 100644
--- a/src/core/or/edge_connection_st.h
+++ b/src/core/or/edge_connection_st.h
@@ -108,7 +108,7 @@ struct edge_connection_t {
/**
* The following fields are used to count the total bytes sent on this
- * stream, and compare them to the number of XON and XOFFs recieved, so
+ * stream, and compare them to the number of XON and XOFFs received, so
* that clients can check rate limits of XOFF/XON to prevent dropmark
* attacks. */
uint32_t total_bytes_xmit;
diff --git a/src/core/or/half_edge_st.h b/src/core/or/half_edge_st.h
index ac97eb19f1..642d8e1ea5 100644
--- a/src/core/or/half_edge_st.h
+++ b/src/core/or/half_edge_st.h
@@ -32,7 +32,7 @@ typedef struct half_edge_t {
int data_pending;
/**
- * Monotime timestamp of when the other end should have successfuly
+ * Monotime timestamp of when the other end should have successfully
* shut down the stream and stop sending data, based on the larger
* of circuit RTT and CBT. Used if 'used_ccontrol' is true, to expire
* the half_edge at this monotime timestamp. */
diff --git a/src/core/or/lttng_cc.inc b/src/core/or/lttng_cc.inc
index b7bf58e196..de06fa026f 100644
--- a/src/core/or/lttng_cc.inc
+++ b/src/core/or/lttng_cc.inc
@@ -30,7 +30,7 @@
* Flow Control
*/
-/* Emitted everytime the flow_control_decide_xon() function is called. */
+/* Emitted every time the flow_control_decide_xon() function is called. */
TRACEPOINT_EVENT(tor_cc, flow_decide_xon,
TP_ARGS(const edge_connection_t *, stream, size_t, n_written),
TP_FIELDS(