Skip to content

Use response instead of request when marshalling#4162

Merged
devinivy merged 5 commits intohapijs:masterfrom
kanongil:fix-abort-crash
Sep 24, 2020
Merged

Use response instead of request when marshalling#4162
devinivy merged 5 commits intohapijs:masterfrom
kanongil:fix-abort-crash

Conversation

@kanongil
Copy link
Copy Markdown
Contributor

This is a proper fix for the issue in #4161. Also includes a failing test.

@kanongil kanongil added the bug Bug or defect label Sep 23, 2020
Copy link
Copy Markdown
Member

@devinivy devinivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left one open question/comment that I wouldn't mind another set of eyes on, but this looks great. Thanks for the speedy fix.

@jaulz
Copy link
Copy Markdown

jaulz commented Sep 23, 2020

Wow, you are great! Thanks a lot! 😊

Copy link
Copy Markdown
Member

@nlf nlf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change makes sense to me, i think the test leaves a little bit to be desired though. it's worth asserting that the response event is the client aborted event we expect it to be.

once that's done this is a 👍 from me

Copy link
Copy Markdown
Member

@nlf nlf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great!

hueniverse added a commit that referenced this pull request Sep 23, 2020
@devinivy devinivy merged commit 06d2723 into hapijs:master Sep 24, 2020
@devinivy devinivy added this to the 20.0.1 milestone Sep 24, 2020
@devinivy devinivy self-assigned this Sep 24, 2020
Nargonath added a commit that referenced this pull request Oct 28, 2020
* update handlebars dependency version

handlebars is only a devDependency, but update the version due to
a security advisory.

Refs: GHSA-q2c6-c6pm-g3gh

* docs: ✏️ improve docs for server.rules() (#4141)

* docs: ✏️ improve docs for server.rules()

server.rules() was missing a good example and explanation was a bit
obscure.

* docs: ✏️ update requested changes for route rules

Co-authored-by: Danilo Alonso <[email protected]>

* Use response instead of request when marshalling (#4162)

* Use response instead of request when marshalling. Closes #4161

* Cleanup

* Don't change internals.fail()

* Fix info.responding being set on remotely closed requests

* More cleanup

* 20.0.1

* upgrade to labv24 (#4167)

* Update joi documentation link (#4174)

Co-authored-by: cjihrig <[email protected]>
Co-authored-by: Danilo Alonso <[email protected]>
Co-authored-by: Danilo Alonso <[email protected]>
Co-authored-by: Gil Pedersen <[email protected]>
Co-authored-by: Devin Ivy <[email protected]>
Co-authored-by: Lloyd Benson <[email protected]>
@kanongil kanongil deleted the fix-abort-crash branch October 4, 2021 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bug or defect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants