mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 08:06:47 +00:00
Set an idle timeout on registration gRPC client
This commit is contained in:
1 parent
9f3ffa3707
commit
b594986241
1 file changed
+3
-1
+3
-1
@@ -69,7 +69,9 @@ public class RegistrationServiceClient implements Managed {
|
||||
.trustManager(certificateInputStream)
|
||||
.build();
|
||||
|
||||
this.channel = Grpc.newChannelBuilderForAddress(host, port, tlsChannelCredentials).build();
|
||||
this.channel = Grpc.newChannelBuilderForAddress(host, port, tlsChannelCredentials)
|
||||
.idleTimeout(1, TimeUnit.MINUTES)
|
||||
.build();
|
||||
}
|
||||
|
||||
this.stub = RegistrationServiceGrpc.newFutureStub(channel)
|
||||
|
||||
Reference in new issue
Block a user