Hello,

Sorry I answer to your question without really answering but it seems that 
what you are doing is exactly what I want to do (I want to create a chat 
server for multiple clients and broadcast message of one client to others).
Do you use only one stream or one stream per client (thread) ?
If multiple streams, is it then possible to have a client-thread waiting 
for a message but having another thread writing on the stream ?

If I succeed I'll see if I face the same issue as you.

Thanks.

Le jeudi 14 mars 2019 20:45:53 UTC+1, Jeff a écrit :
>
> Hello all,
>   I have noticed in my testing of an async server streaming messages to 
> multiple sync clients that the server does not serve all clients uniformly. 
> There are long stretches where the server will write only to one client, 
> and then there are stretches where the server will server clients more 
> evenly. I am using only one completion queue; not sure if using more will 
> help somehow.
> Does anyone have any insight into this? All code is in C++. Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/56173f6a-644a-4e01-8d9a-48336a1ecbf4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to