tfdbg: fix issue where total source file size exceeds gRPC message size limit
authorShanqing Cai <cais@google.com>
Thu, 24 May 2018 21:02:30 +0000 (14:02 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 24 May 2018 21:05:21 +0000 (14:05 -0700)
commitd2090672fe8305289156460c43f7fcc1a5dd5422
tree9fc8dc6b47beaac3d1abfeca10e92fc6748f94e8
parent51645f15b3854447c887abf0e92d0465d79ea92c
tfdbg: fix issue where total source file size exceeds gRPC message size limit

* Source file content is now sent one by one, making it less likely that individual
  messages will have sizes above the 4-MB gRPC message size limit.
* In case the message for a single source file exceeds the limit, the client handles
  it gracefully by skipping the sending and print a warning message.

Fixes: https://github.com/tensorflow/tensorboard/issues/1118
PiperOrigin-RevId: 197949416
tensorflow/python/debug/BUILD
tensorflow/python/debug/lib/grpc_debug_test_server.py
tensorflow/python/debug/lib/source_remote.py
tensorflow/python/debug/lib/source_remote_test.py