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/c36c76c3-0d75-437a-a617-f23798bcf5a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.