Retain and release media replication connection ownership
This commit is contained in:
1 parent
57d2828496
commit
035a2eb6d0
4 files changed
+21
-33
No files matched your search
@@ -1040,7 +1040,7 @@ static void relay_test_event(struct UTUN_INSTANCE *inst, const struct stream_eve
|
||||
/* Все проверки помощи используют подписанное управление и настоящий raw ETCP, не прямой ingest. */
|
||||
static void test_supernode_relay(void) {
|
||||
int route_level = g_debug_config.category_levels[DEBUG_CATEGORY_ETCPROUTE];
|
||||
debug_set_category_level(DEBUG_CATEGORY_ETCPROUTE, DEBUG_LEVEL_TRACE);
|
||||
debug_set_category_level(DEBUG_CATEGORY_ETCPROUTE, DEBUG_LEVEL_INFO);
|
||||
int diagnostic_level = g_debug_config.category_levels[DEBUG_CATEGORY_DEBUG];
|
||||
debug_set_category_level(DEBUG_CATEGORY_DEBUG, DEBUG_LEVEL_DEBUG);
|
||||
struct TOPO_PEER_REQUEST *connections[3] = {0};
|
||||
@@ -1238,6 +1238,11 @@ int main(int argc, char **argv) {
|
||||
for (unsigned i = 0; i < 3; i++) topo_group_peer_close(connections[i]);
|
||||
for (unsigned i = 0; i < 4; i++) { stream_set_event_callback(nodes[i], NULL, NULL); utun_instance_destroy(nodes[i]); }
|
||||
uasync_destroy(ua, 1); test_clock_finish();
|
||||
if (u_get_allocated_count() != allocations) {
|
||||
debug_set_category_level(DEBUG_CATEGORY_SYS, DEBUG_LEVEL_ERROR);
|
||||
DEBUG_ERROR(DEBUG_CATEGORY_STREAM, "relay tracked allocations before=%zu after=%zu", allocations, u_get_allocated_count());
|
||||
u_report_unfreed_blocks();
|
||||
}
|
||||
CHECK(u_get_allocated_count() == allocations);
|
||||
DEBUG_INFO(DEBUG_CATEGORY_STREAM, "[PASS] isolated supernode relay checks complete, no tracked allocations remain");
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user