Report total number of bytes to be transferred when the curl request makes no progress.

PiperOrigin-RevId: 173707608
This commit is contained in:
A. Unique TensorFlower
2017-10-27 13:01:09 -07:00
committed by TensorFlower Gardener
parent 7c4e98eb4a
commit 466b9ecf8b

View File

@@ -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.
}