Closed
Description
I encountered some problems with grpc-java, please help, thank you very much.
My version number is 1.45.4.
My code is as follows:
originChannel is an instance variable
ManagedChannel originChannel=NettyChannelBuilder.forAddress(XXXX, XXXX)
.idleTimeout(2, TimeUnit.MINUTES)
.usePlaintext()
.build();
grpc remote call code is
XXService. newBlockingStub(originChannel)
.withInterceptors(new ClientInterceptor[]{MetadataUtils.newAttachHeadersInterceptor(meta)})
.withDeadlineAfter(2, TimeUnit. SECONDS)
.xx(Empty.newBuilder().build());
I get some error messages and after 20 seconds it's fine again
o.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 1.999884080s. [closed=[], open=[[buffered_nanos=2001703685, waiting_for_connection]]]