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/55ffe234-e891-4246-a216-a94b8a2a2447%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.