@Carl: Great advice! Thank you.
On Wednesday, November 1, 2017 at 12:19:03 AM UTC+7, Carl Mastrangelo wrote:
>
> On the server side you can set NettyServerBuilder.maxConnectionAge() and
> related methods to limit how long idle clients are connected.
>
> On Monday, October 30, 2017 at 8:41:06 PM UTC-7, Anh Le wrote:
>>
>> When I use an interceptor to authenticate clients (in bi-directional
>> streaming scenarios), if unauthenticated clients refuse to shutdown their
>> channels, how can I forcefully close connections and reclaim opened file
>> descriptors?
>>
>>
>> Here's the code for the interceptor (assuming that I reject all gRPC
>> calls) and it doesn't work.
>>
>> @Overridepublic <ReqT, RespT> ServerCall.Listener<ReqT> interceptCall(
>> ServerCall<ReqT, RespT> call,
>> final Metadata requestHeaders,
>> ServerCallHandler<ReqT, RespT> next) {
>>
>> call.close(Status.CANCELLED, requestHeaders);
>> return new ServerCall.Listener() {
>>
>> };
>>
>> }
>>
>>
--
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/63cc1b2c-4bb0-4be8-8877-0f7aea65077f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.