From 466b9ecf8b42bd4a596281f1b430f122c5c3e00a Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Fri, 27 Oct 2017 13:01:09 -0700 Subject: [PATCH] Report total number of bytes to be transferred when the curl request makes no progress. PiperOrigin-RevId: 173707608 --- tensorflow/core/platform/cloud/curl_http_request.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tensorflow/core/platform/cloud/curl_http_request.cc b/tensorflow/core/platform/cloud/curl_http_request.cc index e1f8867b38a..e2d935f35eb 100644 --- a/tensorflow/core/platform/cloud/curl_http_request.cc +++ b/tensorflow/core/platform/cloud/curl_http_request.cc @@ -512,8 +512,10 @@ int CurlHttpRequest::ProgressCallback(void* this_object, curl_off_t dltotal, } if (now - that->last_progress_timestamp_ > kInactivityTimeoutSeconds) { - LOG(ERROR) << "The transmission has been stuck at " << current_progress - << " bytes for " << now - that->last_progress_timestamp_ + LOG(ERROR) << "The transmission of request " << this_object + << " has been stuck at " << current_progress << " of " + << dltotal + ultotal << " bytes for " + << now - that->last_progress_timestamp_ << " seconds and will be aborted."; return 1; // Will abort the request. }