mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
Report total number of bytes to be transferred when the curl request makes no progress.
PiperOrigin-RevId: 173707608
This commit is contained in:
committed by
TensorFlower Gardener
parent
7c4e98eb4a
commit
466b9ecf8b
@@ -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.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user