Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requests_kerberos breaks requests.Response.elapsed #142

Open
JacobHenner opened this issue Jan 15, 2020 · 0 comments
Open

requests_kerberos breaks requests.Response.elapsed #142

JacobHenner opened this issue Jan 15, 2020 · 0 comments

Comments

@JacobHenner
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant