diff --git a/lib/app/ogs-context.c b/lib/app/ogs-context.c index aadbac09d..b2be2b266 100644 --- a/lib/app/ogs-context.c +++ b/lib/app/ogs-context.c @@ -81,6 +81,7 @@ static void recalculate_pool_size(void) self.pool.socket = self.max.ue * POOL_NUM_PER_UE; self.pool.subscription = self.max.ue * POOL_NUM_PER_UE; self.pool.xact = self.max.ue * POOL_NUM_PER_UE; + self.pool.stream = self.max.ue * POOL_NUM_PER_UE; self.pool.nf = self.max.peer; self.pool.gtp_node = self.pool.nf; diff --git a/lib/app/ogs-context.h b/lib/app/ogs-context.h index c05d7afef..2bc8c6c07 100644 --- a/lib/app/ogs-context.h +++ b/lib/app/ogs-context.h @@ -124,6 +124,7 @@ typedef struct ogs_app_context_s { uint64_t socket; uint64_t subscription; uint64_t xact; + uint64_t stream; uint64_t nf; uint64_t gtp_node; diff --git a/lib/sbi/nghttp2-server.c b/lib/sbi/nghttp2-server.c index 1ed54b9d3..f2c110a43 100644 --- a/lib/sbi/nghttp2-server.c +++ b/lib/sbi/nghttp2-server.c @@ -1112,7 +1112,7 @@ static int session_send_preface(ogs_sbi_session_t *sbi_sess) { int rv; nghttp2_settings_entry iv[1] = { - { NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS, 100 } + { NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS, ogs_app()->pool.stream } }; ogs_assert(sbi_sess);