You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
requests.Response has an elapsed attribute, which records "the amount of time elapsed between sending the request and the arrival of the response".
When requests-kerberos is used for auth, the value stored in that attribute is incorrectly set to timedelta(0), instead of the actual request time. The value from the initial request is lost here.
Instead, I believe elapsed should account for the total time elapsed - the sum of elapsed for all responses until the final response is received (the one which is returned to the caller). It should never return timedelta(0).
The text was updated successfully, but these errors were encountered:
requests.Response has an elapsed attribute, which records "the amount of time elapsed between sending the request and the arrival of the response".
When requests-kerberos is used for auth, the value stored in that attribute is incorrectly set to
timedelta(0)
, instead of the actual request time. The value from the initial request is lost here.Instead, I believe
elapsed
should account for the total time elapsed - the sum of elapsed for all responses until the final response is received (the one which is returned to the caller). It should never returntimedelta(0)
.The text was updated successfully, but these errors were encountered: