This is an automated email from the git hooks/post-receive script.
dgoulet pushed a change to branch main in repository tor.
from fff2b92682 Merge branch 'maint-0.4.7' new cd7be492d1 relay: Add DoS subsystem stats to MetricsPort new 48ab17cc72 metrics: Add traffic related stats to MetricsPort new 1a2d93f72a relay: Add our consensus relay flag to MetricsPort new 177f3a40eb metrics: Add number of opened circuits to MetricsPort new 504a6da5ab changes: Update changes for ticket 40194 new 0918cc2783 Merge branch 'maint-0.4.7' new 6d40e980fb metrics: Treat relay connections as gauge, not counter new 72f52d2c85 Merge branch 'tor-gitlab/mr/644' into maint-0.4.7 new 3c58fa8a6f Merge branch 'maint-0.4.7' new 256339712d Strip "__.SYMDEF*" before re-archiving in combine_libs on macOS and iOS. new b30193416c Changes file for 40683 new f09b913e18 Merge branch 'tor-gitlab/mr/645' into maint-0.4.7 new 4481c1e609 Merge branch 'maint-0.4.7'
The 13 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
Summary of changes: changes/ticket40194 | 6 ++ changes/ticket40683 | 6 ++ src/core/or/dos.c | 42 ++++++++ src/core/or/dos.h | 7 ++ src/feature/relay/relay_metrics.c | 214 +++++++++++++++++++++++++++++++++++++- src/feature/relay/relay_metrics.h | 8 ++ 6 files changed, 282 insertions(+), 1 deletion(-) create mode 100644 changes/ticket40683
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit cd7be492d1b70df50b4e35df5cc595490f912c9a Author: David Goulet dgoulet@torproject.org AuthorDate: Thu Oct 27 09:54:54 2022 -0400
relay: Add DoS subsystem stats to MetricsPort
Related to #40194
Signed-off-by: David Goulet dgoulet@torproject.org --- src/core/or/dos.c | 42 +++++++++++++++++++++++++ src/core/or/dos.h | 7 +++++ src/feature/relay/relay_metrics.c | 65 +++++++++++++++++++++++++++++++++++++++ src/feature/relay/relay_metrics.h | 2 ++ 4 files changed, 116 insertions(+)
diff --git a/src/core/or/dos.c b/src/core/or/dos.c index 560abd7691..5bf7d148d7 100644 --- a/src/core/or/dos.c +++ b/src/core/or/dos.c @@ -581,6 +581,48 @@ dos_is_enabled(void)
/* Circuit creation public API. */
+/** Return the number of rejected circuits. */ +uint64_t +dos_get_num_cc_rejected(void) +{ + return cc_num_rejected_cells; +} + +/** Return the number of marked addresses. */ +uint32_t +dos_get_num_cc_marked_addr(void) +{ + return cc_num_marked_addrs; +} + +/** Return the number of marked addresses due to max queue limit reached. */ +uint32_t +dos_get_num_cc_marked_addr_maxq(void) +{ + return cc_num_marked_addrs_max_queue; +} + +/** Return number of concurrent connections rejected. */ +uint64_t +dos_get_num_conn_addr_rejected(void) +{ + return conn_num_addr_rejected; +} + +/** Return the number of connection rejected. */ +uint64_t +dos_get_num_conn_addr_connect_rejected(void) +{ + return conn_num_addr_connect_rejected; +} + +/** Return the number of single hop refused. */ +uint64_t +dos_get_num_single_hop_refused(void) +{ + return num_single_hop_client_refused; +} + /* Called when a CREATE cell is received from the given channel. */ void dos_cc_new_create_cell(channel_t *chan) diff --git a/src/core/or/dos.h b/src/core/or/dos.h index b6412f4280..4a2227f132 100644 --- a/src/core/or/dos.h +++ b/src/core/or/dos.h @@ -84,6 +84,13 @@ int dos_should_refuse_single_hop_client(void); void dos_note_refuse_single_hop_client(void); void dos_note_circ_max_outq(const channel_t *chan);
+uint32_t dos_get_num_cc_marked_addr(void); +uint32_t dos_get_num_cc_marked_addr_maxq(void); +uint64_t dos_get_num_cc_rejected(void); +uint64_t dos_get_num_conn_addr_rejected(void); +uint64_t dos_get_num_conn_addr_connect_rejected(void); +uint64_t dos_get_num_single_hop_refused(void); + /* * Circuit creation DoS mitigation subsystemn interface. */ diff --git a/src/feature/relay/relay_metrics.c b/src/feature/relay/relay_metrics.c index 814afa6006..e9f4b68350 100644 --- a/src/feature/relay/relay_metrics.c +++ b/src/feature/relay/relay_metrics.c @@ -13,6 +13,7 @@ #include "core/or/or.h" #include "core/mainloop/connection.h" #include "core/or/congestion_control_common.h" +#include "core/or/dos.h" #include "core/or/relay.h"
#include "lib/malloc/malloc.h" @@ -20,6 +21,7 @@ #include "lib/metrics/metrics_store.h" #include "lib/log/util_bug.h"
+#include "feature/hs/hs_dos.h" #include "feature/relay/relay_metrics.h" #include "feature/stats/rephist.h"
@@ -30,6 +32,7 @@ static void fill_cc_values(void); static void fill_connections_values(void); static void fill_dns_error_values(void); static void fill_dns_query_values(void); +static void fill_dos_values(void); static void fill_global_bw_limit_values(void); static void fill_socket_values(void); static void fill_onionskins_values(void); @@ -113,6 +116,13 @@ static const relay_metrics_entry_t base_metrics[] = .help = "Congestion control related counters", .fill_fn = fill_cc_values, }, + { + .key = RELAY_METRICS_NUM_DOS, + .type = METRICS_TYPE_COUNTER, + .name = METRICS_NAME(relay_dos_total), + .help = "Denial of Service defenses related counters", + .fill_fn = fill_dos_values, + }, }; static const size_t num_base_metrics = ARRAY_LENGTH(base_metrics);
@@ -139,6 +149,61 @@ handshake_type_to_str(const uint16_t type) } }
+/** Fill function for the RELAY_METRICS_NUM_DOS metric. */ +static void +fill_dos_values(void) +{ + const relay_metrics_entry_t *rentry = &base_metrics[RELAY_METRICS_NUM_DOS]; + metrics_store_entry_t *sentry = + metrics_store_add(the_store, rentry->type, rentry->name, rentry->help); + + metrics_store_entry_add_label(sentry, + metrics_format_label("type", "circuit_rejected")); + metrics_store_entry_update(sentry, dos_get_num_cc_rejected()); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("type", "circuit_killed_max_cell")); + metrics_store_entry_update(sentry, stats_n_circ_max_cell_reached); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("type", "marked_address")); + metrics_store_entry_update(sentry, dos_get_num_cc_marked_addr()); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("type", "marked_address_maxq")); + metrics_store_entry_update(sentry, dos_get_num_cc_marked_addr_maxq()); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("type", "conn_rejected")); + metrics_store_entry_update(sentry, dos_get_num_conn_addr_connect_rejected()); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("type", "concurrent_conn_rejected")); + metrics_store_entry_update(sentry, dos_get_num_conn_addr_rejected()); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("type", "single_hop_refused")); + metrics_store_entry_update(sentry, dos_get_num_single_hop_refused()); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("type", "introduce2_rejected")); + metrics_store_entry_update(sentry, hs_dos_get_intro2_rejected_count()); +} + /** Fill function for the RELAY_METRICS_NUM_CC metric. */ static void fill_cc_values(void) diff --git a/src/feature/relay/relay_metrics.h b/src/feature/relay/relay_metrics.h index a594726668..2aa227c9cb 100644 --- a/src/feature/relay/relay_metrics.h +++ b/src/feature/relay/relay_metrics.h @@ -35,6 +35,8 @@ typedef enum { RELAY_METRICS_NUM_STREAMS = 8, /** Congestion control counters. */ RELAY_METRICS_NUM_CC = 9, + /** Denial of Service defenses subsystem. */ + RELAY_METRICS_NUM_DOS = 10, } relay_metrics_key_t;
/** The metadata of a relay metric. */
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit 48ab17cc72864529ed11d579552dfc2f0cf93f9d Author: David Goulet dgoulet@torproject.org AuthorDate: Thu Oct 27 10:00:50 2022 -0400
metrics: Add traffic related stats to MetricsPort
At this commit, bytes read and written are exported.
Related to #40194
Signed-off-by: David Goulet dgoulet@torproject.org --- src/feature/relay/relay_metrics.c | 29 +++++++++++++++++++++++++++++ src/feature/relay/relay_metrics.h | 2 ++ 2 files changed, 31 insertions(+)
diff --git a/src/feature/relay/relay_metrics.c b/src/feature/relay/relay_metrics.c index e9f4b68350..d5237bbfed 100644 --- a/src/feature/relay/relay_metrics.c +++ b/src/feature/relay/relay_metrics.c @@ -12,6 +12,7 @@
#include "core/or/or.h" #include "core/mainloop/connection.h" +#include "core/mainloop/mainloop.h" #include "core/or/congestion_control_common.h" #include "core/or/dos.h" #include "core/or/relay.h" @@ -39,6 +40,7 @@ static void fill_onionskins_values(void); static void fill_oom_values(void); static void fill_streams_values(void); static void fill_tcp_exhaustion_values(void); +static void fill_traffic_values(void);
/** The base metrics that is a static array of metrics added to the metrics * store. @@ -123,6 +125,13 @@ static const relay_metrics_entry_t base_metrics[] = .help = "Denial of Service defenses related counters", .fill_fn = fill_dos_values, }, + { + .key = RELAY_METRICS_NUM_TRAFFIC, + .type = METRICS_TYPE_COUNTER, + .name = METRICS_NAME(relay_traffic_bytes), + .help = "Traffic related counters", + .fill_fn = fill_traffic_values, + }, }; static const size_t num_base_metrics = ARRAY_LENGTH(base_metrics);
@@ -149,6 +158,26 @@ handshake_type_to_str(const uint16_t type) } }
+/** Fill function for the RELAY_METRICS_NUM_TRAFFIC metric. */ +static void +fill_traffic_values(void) +{ + const relay_metrics_entry_t *rentry = + &base_metrics[RELAY_METRICS_NUM_TRAFFIC]; + metrics_store_entry_t *sentry = + metrics_store_add(the_store, rentry->type, rentry->name, rentry->help); + + metrics_store_entry_add_label(sentry, + metrics_format_label("direction", "read")); + metrics_store_entry_update(sentry, get_bytes_read()); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("direction", "written")); + metrics_store_entry_update(sentry, get_bytes_written()); +} + /** Fill function for the RELAY_METRICS_NUM_DOS metric. */ static void fill_dos_values(void) diff --git a/src/feature/relay/relay_metrics.h b/src/feature/relay/relay_metrics.h index 2aa227c9cb..d501176f2e 100644 --- a/src/feature/relay/relay_metrics.h +++ b/src/feature/relay/relay_metrics.h @@ -37,6 +37,8 @@ typedef enum { RELAY_METRICS_NUM_CC = 9, /** Denial of Service defenses subsystem. */ RELAY_METRICS_NUM_DOS = 10, + /** Denial of Service defenses subsystem. */ + RELAY_METRICS_NUM_TRAFFIC = 11, } relay_metrics_key_t;
/** The metadata of a relay metric. */
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit 1a2d93f72ae29ef82899d5583d88efb29b872579 Author: David Goulet dgoulet@torproject.org AuthorDate: Thu Oct 27 10:33:25 2022 -0400
relay: Add our consensus relay flag to MetricsPort
Related to #40194
Signed-off-by: David Goulet dgoulet@torproject.org --- src/feature/relay/relay_metrics.c | 94 +++++++++++++++++++++++++++++++++++++++ src/feature/relay/relay_metrics.h | 2 + 2 files changed, 96 insertions(+)
diff --git a/src/feature/relay/relay_metrics.c b/src/feature/relay/relay_metrics.c index d5237bbfed..348d776c3b 100644 --- a/src/feature/relay/relay_metrics.c +++ b/src/feature/relay/relay_metrics.c @@ -17,13 +17,19 @@ #include "core/or/dos.h" #include "core/or/relay.h"
+#include "app/config/config.h" + #include "lib/malloc/malloc.h" #include "lib/container/smartlist.h" #include "lib/metrics/metrics_store.h" #include "lib/log/util_bug.h"
#include "feature/hs/hs_dos.h" +#include "feature/nodelist/nodelist.h" +#include "feature/nodelist/node_st.h" +#include "feature/nodelist/routerstatus_st.h" #include "feature/relay/relay_metrics.h" +#include "feature/relay/router.h" #include "feature/stats/rephist.h"
#include <event2/dns.h> @@ -39,6 +45,7 @@ static void fill_socket_values(void); static void fill_onionskins_values(void); static void fill_oom_values(void); static void fill_streams_values(void); +static void fill_relay_flags(void); static void fill_tcp_exhaustion_values(void); static void fill_traffic_values(void);
@@ -132,6 +139,13 @@ static const relay_metrics_entry_t base_metrics[] = .help = "Traffic related counters", .fill_fn = fill_traffic_values, }, + { + .key = RELAY_METRICS_RELAY_FLAGS, + .type = METRICS_TYPE_GAUGE, + .name = METRICS_NAME(relay_flag), + .help = "Relay flags from consensus", + .fill_fn = fill_relay_flags, + }, }; static const size_t num_base_metrics = ARRAY_LENGTH(base_metrics);
@@ -158,6 +172,86 @@ handshake_type_to_str(const uint16_t type) } }
+/** Fill function for the RELAY_METRICS_RELAY_FLAGS metric. */ +static void +fill_relay_flags(void) +{ + uint8_t is_fast = 0, is_exit = 0, is_authority = 0, is_stable = 0; + uint8_t is_running = 0, is_v2_dir = 0, is_guard = 0, is_sybil = 0; + uint8_t is_hs_dir = 0; + + const node_t *me = + node_get_by_id((const char *) router_get_my_id_digest()); + if (me && me->rs) { + is_fast = me->rs->is_fast; + is_exit = me->rs->is_exit; + is_authority = me->rs->is_authority; + is_stable = me->rs->is_stable; + is_running = me->rs->is_flagged_running; + is_v2_dir = me->rs->is_v2_dir; + is_guard = me->rs->is_possible_guard; + is_sybil = me->rs->is_sybil; + is_hs_dir = me->rs->is_hs_dir; + } + + const relay_metrics_entry_t *rentry = + &base_metrics[RELAY_METRICS_RELAY_FLAGS]; + metrics_store_entry_t *sentry = + metrics_store_add(the_store, rentry->type, rentry->name, rentry->help); + + metrics_store_entry_add_label(sentry, + metrics_format_label("type", "Fast")); + metrics_store_entry_update(sentry, is_fast); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("type", "Exit")); + metrics_store_entry_update(sentry, is_exit); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("type", "Authority")); + metrics_store_entry_update(sentry, is_authority); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("type", "Stable")); + metrics_store_entry_update(sentry, is_stable); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("type", "HSDir")); + metrics_store_entry_update(sentry, is_hs_dir); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("type", "Running")); + metrics_store_entry_update(sentry, is_running); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("type", "V2Dir")); + metrics_store_entry_update(sentry, is_v2_dir); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("type", "Sybil")); + metrics_store_entry_update(sentry, is_sybil); + + sentry = metrics_store_add(the_store, rentry->type, rentry->name, + rentry->help); + metrics_store_entry_add_label(sentry, + metrics_format_label("type", "Guard")); + metrics_store_entry_update(sentry, is_guard); +} + /** Fill function for the RELAY_METRICS_NUM_TRAFFIC metric. */ static void fill_traffic_values(void) diff --git a/src/feature/relay/relay_metrics.h b/src/feature/relay/relay_metrics.h index d501176f2e..7c41ecf38b 100644 --- a/src/feature/relay/relay_metrics.h +++ b/src/feature/relay/relay_metrics.h @@ -39,6 +39,8 @@ typedef enum { RELAY_METRICS_NUM_DOS = 10, /** Denial of Service defenses subsystem. */ RELAY_METRICS_NUM_TRAFFIC = 11, + /** Relay flags. */ + RELAY_METRICS_RELAY_FLAGS = 12, } relay_metrics_key_t;
/** The metadata of a relay metric. */
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit 177f3a40ebc3e570133133c15ae79d9eaab16052 Author: David Goulet dgoulet@torproject.org AuthorDate: Thu Oct 27 10:39:55 2022 -0400
metrics: Add number of opened circuits to MetricsPort
Related to #40194
Signed-off-by: David Goulet dgoulet@torproject.org --- src/feature/relay/relay_metrics.c | 24 ++++++++++++++++++++++++ src/feature/relay/relay_metrics.h | 2 ++ 2 files changed, 26 insertions(+)
diff --git a/src/feature/relay/relay_metrics.c b/src/feature/relay/relay_metrics.c index 348d776c3b..7fcbb72d75 100644 --- a/src/feature/relay/relay_metrics.c +++ b/src/feature/relay/relay_metrics.c @@ -14,6 +14,7 @@ #include "core/mainloop/connection.h" #include "core/mainloop/mainloop.h" #include "core/or/congestion_control_common.h" +#include "core/or/circuitlist.h" #include "core/or/dos.h" #include "core/or/relay.h"
@@ -36,6 +37,7 @@
/** Declarations of each fill function for metrics defined in base_metrics. */ static void fill_cc_values(void); +static void fill_circuits_values(void); static void fill_connections_values(void); static void fill_dns_error_values(void); static void fill_dns_query_values(void); @@ -146,6 +148,13 @@ static const relay_metrics_entry_t base_metrics[] = .help = "Relay flags from consensus", .fill_fn = fill_relay_flags, }, + { + .key = RELAY_METRICS_NUM_CIRCUITS, + .type = METRICS_TYPE_GAUGE, + .name = METRICS_NAME(relay_circuits_total), + .help = "Total number of circuits", + .fill_fn = fill_circuits_values, + }, }; static const size_t num_base_metrics = ARRAY_LENGTH(base_metrics);
@@ -172,6 +181,21 @@ handshake_type_to_str(const uint16_t type) } }
+/** Fill function for the RELAY_METRICS_NUM_CIRCUITS metric. */ +static void +fill_circuits_values(void) +{ + const relay_metrics_entry_t *rentry = + &base_metrics[RELAY_METRICS_NUM_CIRCUITS]; + metrics_store_entry_t *sentry = + metrics_store_add(the_store, rentry->type, rentry->name, rentry->help); + + metrics_store_entry_add_label(sentry, + metrics_format_label("state", "opened")); + metrics_store_entry_update(sentry, + smartlist_len(circuit_get_global_list())); +} + /** Fill function for the RELAY_METRICS_RELAY_FLAGS metric. */ static void fill_relay_flags(void) diff --git a/src/feature/relay/relay_metrics.h b/src/feature/relay/relay_metrics.h index 7c41ecf38b..8ac24ebdb4 100644 --- a/src/feature/relay/relay_metrics.h +++ b/src/feature/relay/relay_metrics.h @@ -41,6 +41,8 @@ typedef enum { RELAY_METRICS_NUM_TRAFFIC = 11, /** Relay flags. */ RELAY_METRICS_RELAY_FLAGS = 12, + /** Numer of circuits. */ + RELAY_METRICS_NUM_CIRCUITS = 13, } relay_metrics_key_t;
/** The metadata of a relay metric. */
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit 504a6da5ab6070258cb68f2aab5610e79fd6b058 Author: David Goulet dgoulet@torproject.org AuthorDate: Thu Oct 27 10:35:10 2022 -0400
changes: Update changes for ticket 40194
Signed-off-by: David Goulet dgoulet@torproject.org --- changes/ticket40194 | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/changes/ticket40194 b/changes/ticket40194 index b4fcae9cdc..9f3a4833cf 100644 --- a/changes/ticket40194 +++ b/changes/ticket40194 @@ -1,3 +1,9 @@ o Minor feature (relay, metrics): - Add counters to the MetricsPort how many connections, per type, are currently opened and how many were created. Part of ticket 40194. + - Add total number of streams seen by an Exit to the MetricsPort. + - Add congestion control RTT reset counter to MetricsPort. + - Add DoS defenses counter to MetricsPort. + - Add relay flags from the consensus to the MetricsPort. + - Add total number of opened circuits to MetricsPort. + - Add traffic stats as in number of read/written bytes in total.
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit 256339712de21d7002129aed102b637cda634ab5 Author: Alexander Færøy ahf@torproject.org AuthorDate: Fri Oct 14 12:12:46 2022 +0200
Strip "__.SYMDEF*" before re-archiving in combine_libs on macOS and iOS.
This patch changes how combine_libs works on Darwin like platforms to make sure we don't include any `__.SYMDEF` and `__.SYMDEF SORTED` symbols on the archive before we repack and run ${RANLIB} on the archive.
See: tpo/core/tor#40683. --- scripts/build/combine_libs | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/scripts/build/combine_libs b/scripts/build/combine_libs index a855171dc7..9dec483602 100755 --- a/scripts/build/combine_libs +++ b/scripts/build/combine_libs @@ -11,6 +11,15 @@ abspath() { echo "$(cd "$(dirname "$1")" >/dev/null && pwd)/$(basename "$1")" }
+apple_symdef_fix() { + # On modern macOS and iOS we need to remove the "__.SYMDEF" and "__.SYMDEF + # SORTED" before we repack the archive. + # See: tor#40683. + if [ "$(uname -s)" = "Darwin" ] ; then + find . -name "__.SYMDEF*" -delete + fi +} + TARGET=$(abspath "$1")
shift @@ -25,6 +34,7 @@ for input in "$@"; do done
cd "$TMPDIR" >/dev/null +apple_symdef_fix "${AR:-ar}" "${ARFLAGS:-cru}" library.tmp.a ./*/** "${RANLIB:-ranlib}" library.tmp.a mv -f library.tmp.a "$TARGET"
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit b30193416cb97540b5bebafa9c69a238343c2a87 Author: Mike Perry mikeperry-git@torproject.org AuthorDate: Thu Oct 27 15:36:53 2022 +0000
Changes file for 40683 --- changes/ticket40683 | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/changes/ticket40683 b/changes/ticket40683 new file mode 100644 index 0000000000..6df078ebae --- /dev/null +++ b/changes/ticket40683 @@ -0,0 +1,6 @@ + o Minor feature (Mac and iOS build): + - Change how combine_libs works on Darwin like platforms to + make sure we don't include any `__.SYMDEF` and `__.SYMDEF SORTED` + symbols on the archive before we repack and run ${RANLIB} on the + archive. This fixes a build issue with recent Xcode versions on + Mac Silicon and iOS. Closes ticket 40683.
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit 6d40e980fb149549bbef5d9e80dbdf886d87d207 Author: David Goulet dgoulet@torproject.org AuthorDate: Thu Oct 27 11:35:27 2022 -0400
metrics: Treat relay connections as gauge, not counter
Fixes #40699
Signed-off-by: David Goulet dgoulet@torproject.org --- src/feature/relay/relay_metrics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/feature/relay/relay_metrics.c b/src/feature/relay/relay_metrics.c index 814afa6006..392100e4b9 100644 --- a/src/feature/relay/relay_metrics.c +++ b/src/feature/relay/relay_metrics.c @@ -94,7 +94,7 @@ static const relay_metrics_entry_t base_metrics[] = }, { .key = RELAY_METRICS_NUM_CONNECTIONS, - .type = METRICS_TYPE_COUNTER, + .type = METRICS_TYPE_GAUGE, .name = METRICS_NAME(relay_connections_total), .help = "Total number of connections", .fill_fn = fill_connections_values,
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit 0918cc2783b1744adffedb5b121d9afdd2f1fd79 Merge: fff2b92682 504a6da5ab Author: David Goulet dgoulet@torproject.org AuthorDate: Thu Oct 27 11:41:26 2022 -0400
Merge branch 'maint-0.4.7'
changes/ticket40194 | 6 ++ src/core/or/dos.c | 42 ++++++++ src/core/or/dos.h | 7 ++ src/feature/relay/relay_metrics.c | 212 ++++++++++++++++++++++++++++++++++++++ src/feature/relay/relay_metrics.h | 8 ++ 5 files changed, 275 insertions(+)
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit 72f52d2c8528855fc3f54173b14b1bce49dcb141 Merge: 504a6da5ab 6d40e980fb Author: David Goulet dgoulet@torproject.org AuthorDate: Thu Oct 27 11:41:43 2022 -0400
Merge branch 'tor-gitlab/mr/644' into maint-0.4.7
src/feature/relay/relay_metrics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit 3c58fa8a6f0df1ee81591603a691034a34b8c98a Merge: 0918cc2783 72f52d2c85 Author: David Goulet dgoulet@torproject.org AuthorDate: Thu Oct 27 11:41:48 2022 -0400
Merge branch 'maint-0.4.7'
src/feature/relay/relay_metrics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit f09b913e18ef2a8d092b2c21840acc5f2d64c337 Merge: 72f52d2c85 b30193416c Author: David Goulet dgoulet@torproject.org AuthorDate: Thu Oct 27 11:42:07 2022 -0400
Merge branch 'tor-gitlab/mr/645' into maint-0.4.7
changes/ticket40683 | 6 ++++++ scripts/build/combine_libs | 10 ++++++++++ 2 files changed, 16 insertions(+)
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit 4481c1e6099864c0942c3bed1cfc59e90ebf503b Merge: 3c58fa8a6f f09b913e18 Author: David Goulet dgoulet@torproject.org AuthorDate: Thu Oct 27 11:42:10 2022 -0400
Merge branch 'maint-0.4.7'
changes/ticket40683 | 6 ++++++ 1 file changed, 6 insertions(+)
tor-commits@lists.torproject.org