You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using the h2_client how can I know the max number of concurrent streams allowed on the server.
I can see in the code that the received "SETTINGS" frame saves the other endpoint max concurrent streams in the local connection.
I would like to check the max streams allowed and then when I am sending split the requests in up max streams size request chunks.
Example:
I have to send 1000 requests so, I will check the max streams (100) so I will split the requests in 10 chunks and send and receive the streams until send the 1000 without exceed the max limit on the server (will cause a {ok, {error, 7}} on chatterbox server if we put a limit in the MCS).
Some guidance would be nice
Cheers
The text was updated successfully, but these errors were encountered:
I wouldn't do it very frequently, though, because get_streams/1 is a sync event and polling a lot will block the gen_fsm while in progress.
A better way (IMHO) to do it would be to add code to chatterbox to send an event when receiving a frame from the server, and pull the MCS out of that. Or wait until you get the {error, 7} return and stop sending.
Honestly, I'm not sure what is a good way of achieving efficient batching in APNS with chatterbox.
Hi,
using the h2_client how can I know the max number of concurrent streams allowed on the server.
I can see in the code that the received "SETTINGS" frame saves the other endpoint max concurrent streams in the local connection.
I would like to check the max streams allowed and then when I am sending split the requests in up max streams size request chunks.
Example:
I have to send 1000 requests so, I will check the max streams (100) so I will split the requests in 10 chunks and send and receive the streams until send the 1000 without exceed the max limit on the server (will cause a {ok, {error, 7}} on chatterbox server if we put a limit in the MCS).
Some guidance would be nice
Cheers
The text was updated successfully, but these errors were encountered: