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

Record null responseTime when request is aborted #618

Merged
merged 2 commits into from
Sep 21, 2019

Conversation

rankida
Copy link
Contributor

@rankida rankida commented Aug 9, 2019

As the hapi API docs say here the info.responded can be 0 in some cases such as aborted requests.

Just now good will output responseTime of -Date.now().

This PR changes this to set responseTime to null to better reflect the 0 responded value.

@rahaack
Copy link

rahaack commented Aug 12, 2019

Should request.info.responded just be replaced with request.info.completed?

From the hapi 18 release notes:
image

@rankida
Copy link
Contributor Author

rankida commented Aug 12, 2019

Seems like a sensible suggestion

@hueniverse hueniverse merged commit 450b4c1 into hapijs:master Sep 21, 2019
@hueniverse hueniverse self-assigned this Sep 21, 2019
@hueniverse hueniverse added the bug Bug or defect label Sep 21, 2019
@hueniverse hueniverse added this to the 8.2.3 milestone Sep 21, 2019
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bug or defect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants