Got it, thanks!

I am currently implementing a server-side streaming application. Can one 
ResponseObserver be shared by multiple threads sending response stream back 
to the client through onNext() method? Just want to confirm if there is a 
race condition in calling onNext() at the same time.

On Tuesday, 18 May 2021 at 19:28:43 UTC-4 [email protected] wrote:

> With NettyServerBuilder you can use maxConcurrentCallsPerConnection(int 
> maxCalls) 
> <https://github.com/grpc/grpc-java/blob/master/netty/src/main/java/io/grpc/netty/NettyServerBuilder.java#L397>
>  
>
> This is the same as setting MAX_CONCURRENT_STREAMS per connection.
>
> On Tue, May 18, 2021 at 3:36 PM Bill Li <[email protected]> wrote:
>
>> Hi,
>>
>> Does anyone know or have an example for configuring the parameter 
>> MAX_CONCURRENT_STREAMS for gRPC server written in Java?
>>
>> Thanks,
>> Bill
>>
>> -- 
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/grpc-io/cbb2fd35-a01a-4128-879d-08cbc91049b0n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/grpc-io/cbb2fd35-a01a-4128-879d-08cbc91049b0n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/0eb808f0-b1e0-4b5f-86e6-ffa15b7149d8n%40googlegroups.com.

Reply via email to