maximum concurrent streams in cpp

137 views
Skip to first unread message

karthik karra

unread,
May 15, 2023, 4:34:04 AM5/15/23
to grpc.io
Hi All, 

currently i am getting max of 15 streams to server from 2 clients. 
how to set the max concurrent streams ?
do i need to create a new channel or should i increase the max concurrent streams ?

Any suggestions would be helpful.

Thanks,
Karthik

karthik karra

unread,
May 15, 2023, 5:15:14 AM5/15/23
to grpc.io
tried this call but of no use
server_builder.AddChannelArgument(GRPC_ARG_MAX_CONCURRENT_STREAMS,30)

karthik karra

unread,
May 15, 2023, 5:17:18 AM5/15/23
to grpc.io
and also tried using different channels for each client. nothing worked

yas...@google.com

unread,
May 31, 2023, 5:49:06 PM5/31/23
to grpc.io
I don't think that you are running into a limit from max concurrent streams. If you haven't explicit set a limit of 15, you are not getting limited by that arg.

What are the symptoms that you are seeing? If it is simply a case of only 15 RPCs being served concurrently, I suspect that the issue that you are running into is that your threads are blocked and hence not able to serve/poll other RPCs.

Reply all
Reply to author
Forward
0 new messages