File tree Expand file tree Collapse file tree
branches/autosynth-websecurityscanner/google-cloud-clients/google-cloud-core-grpc/src/main/java/com/google/cloud/grpc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ refs/heads/autosynth-speech: c563dcd420cce0a37c39b1b9c24be1b9ba604dc7
142142refs/heads/autosynth-tasks: 25d1eafe8cb66b00e3dad765dac74a5b45b83e63
143143refs/heads/autosynth-texttospeech: 7a3ad430dddaed7a76f2026064502680c9339915
144144refs/heads/autosynth-trace: 31564421a4b29f8257a6daea7f9a19838ac6459f
145- refs/heads/autosynth-websecurityscanner: db3241b30b41cc97457009ab8665485b2d3762b9
145+ refs/heads/autosynth-websecurityscanner: 575eca4e5ac9c16ff7ce438227b44fdb7e213aad
146146refs/heads/bigquerystorage: 06db74d123d7f8a3ef48755c2fcabed09faf8e64
147147refs/heads/elharo-patch-1: ce159ef828d3c545991ff78e7b6e0d912a9453e9
148148refs/heads/snyk-fix-r0punm: 1f0e6519ffd9f6cc09bcce1ccdf3fb61b6f4f9b5
Original file line number Diff line number Diff line change 3131import com .google .cloud .NoCredentials ;
3232import com .google .cloud .ServiceOptions ;
3333import com .google .cloud .TransportOptions ;
34+ import com .google .common .util .concurrent .ThreadFactoryBuilder ;
3435import io .grpc .internal .SharedResourceHolder ;
3536import io .grpc .internal .SharedResourceHolder .Resource ;
3637import java .io .IOException ;
@@ -54,7 +55,13 @@ public class GrpcTransportOptions implements TransportOptions {
5455 new Resource <ScheduledExecutorService >() {
5556 @ Override
5657 public ScheduledExecutorService create () {
57- ScheduledThreadPoolExecutor service = new ScheduledThreadPoolExecutor (8 );
58+ ScheduledThreadPoolExecutor service =
59+ new ScheduledThreadPoolExecutor (
60+ 8 ,
61+ new ThreadFactoryBuilder ()
62+ .setDaemon (true )
63+ .setNameFormat ("grpc-transport-%d" )
64+ .build ());
5865 service .setKeepAliveTime (5 , TimeUnit .SECONDS );
5966 service .allowCoreThreadTimeOut (true );
6067 service .setRemoveOnCancelPolicy (true );
You can’t perform that action at this time.
0 commit comments