From 9073eda854ecee61f723894e66036de266e63606 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Mon, 27 Feb 2023 22:03:41 +0100 Subject: Reducing initial channel bitmap sizes to help extreme cases --- nest/proto.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nest/proto.c') diff --git a/nest/proto.c b/nest/proto.c index aaa2a602..b172ad2d 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -516,8 +516,8 @@ channel_start_export(struct channel *c) .log_state_change = channel_export_log_state_change, }; - bmap_init(&c->export_map, c->proto->pool, 1024); - bmap_init(&c->export_reject_map, c->proto->pool, 1024); + bmap_init(&c->export_map, c->proto->pool, 16); + bmap_init(&c->export_reject_map, c->proto->pool, 16); channel_reset_limit(c, &c->out_limit, PLD_OUT); @@ -597,8 +597,8 @@ channel_export_stopped(struct rt_export_request *req) channel_reset_limit(c, &c->out_limit, PLD_OUT); - bmap_reset(&c->export_map, 1024); - bmap_reset(&c->export_reject_map, 1024); + bmap_reset(&c->export_map, 16); + bmap_reset(&c->export_reject_map, 16); rt_request_export(c->table, req); return; -- cgit v1.2.3