diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-06-27 08:16:23 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-06-27 08:19:41 -0700 |
commit | e12615813d0cfaa0fcd1fdafed48efa6ad5ae121 (patch) | |
tree | 87bd0694630142538740e3821a4888a86a2a0575 /tensorflow/core/debug | |
parent | 1c57e8864aeb8093f12e8f390571fb8cd9f376a4 (diff) |
Explicitly use "dns" URI scheme when using DNS names or literal IP
addresses with gRPC. This avoids problems in environments in which the
default URI scheme is something other than "dns".
PiperOrigin-RevId: 160276862
Diffstat (limited to 'tensorflow/core/debug')
-rw-r--r-- | tensorflow/core/debug/debug_io_utils.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tensorflow/core/debug/debug_io_utils.cc b/tensorflow/core/debug/debug_io_utils.cc index 69fc367789..9b2e5583aa 100644 --- a/tensorflow/core/debug/debug_io_utils.cc +++ b/tensorflow/core/debug/debug_io_utils.cc @@ -581,8 +581,9 @@ Status DebugGrpcChannel::Connect(const int64 timeout_micros) { args.SetInt(GRPC_ARG_MAX_MESSAGE_LENGTH, std::numeric_limits<int32>::max()); // Avoid problems where default reconnect backoff is too long (e.g., 20 s). args.SetInt("grpc.testing.fixed_reconnect_backoff_ms", 1000); - channel_ = ::grpc::CreateCustomChannel( - server_stream_addr_, ::grpc::InsecureChannelCredentials(), args); + channel_ = + ::grpc::CreateCustomChannel("dns:///" + server_stream_addr_, + ::grpc::InsecureChannelCredentials(), args); if (!channel_->WaitForConnected( gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), gpr_time_from_micros(timeout_micros, GPR_TIMESPAN)))) { |