[SBI] Increased the max stream number

This commit is contained in:
Sukchan Lee 2022-08-10 11:03:10 +09:00
parent 4cb657c804
commit db37bc8944
3 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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);