Skip to content

fix: post async regression with empty body#5008

Merged
mcollina merged 4 commits intomainfrom
fix-post-async-bug
Aug 31, 2023
Merged

fix: post async regression with empty body#5008
mcollina merged 4 commits intomainfrom
fix-post-async-bug

Conversation

@mcollina
Copy link
Member

This PR reverts #4963 and adds a test to prevent such regressions.

Checklist

Signed-off-by: Matteo Collina <hello@matteocollina.com>
@mcollina mcollina changed the title Fix post async regression Fix post async regression with empty body Aug 31, 2023
@mcollina mcollina changed the title Fix post async regression with empty body fix: post async regression with empty body Aug 31, 2023
@mcollina mcollina mentioned this pull request Aug 31, 2023
2 tasks
@climba03003
Copy link
Member

So, it must be checking the reply.raw.socket.destroyed instead of reply.request.raw.destoryed.
Losting duplex socket means the underlaying resources is closed in unexpected way.

@mcollina
Copy link
Member Author

Can somebody push a fix for the test? I’m currently on vacation and this needs to be fixed asap.

@climba03003
Copy link
Member

I didn't spot any particular error inside the ci log. Strange.

Signed-off-by: Matteo Collina <hello@matteocollina.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
@mcollina mcollina merged commit 498b17c into main Aug 31, 2023
@mcollina mcollina deleted the fix-post-async-bug branch August 31, 2023 18:12
renovate bot referenced this pull request in tomacheese/telcheck Aug 31, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [fastify](https://www.fastify.io/)
([source](https://togithub.com/fastify/fastify)) | [`4.22.0` ->
`4.22.1`](https://renovatebot.com/diffs/npm/fastify/4.22.0/4.22.1) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/fastify/4.22.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/fastify/4.22.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/fastify/4.22.0/4.22.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/fastify/4.22.0/4.22.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>fastify/fastify (fastify)</summary>

###
[`v4.22.1`](https://togithub.com/fastify/fastify/releases/tag/v4.22.1)

[Compare
Source](https://togithub.com/fastify/fastify/compare/v4.22.0...v4.22.1)

#### What's Changed

- chore: Bump the dev-dependencies group with 1 update by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/fastify/fastify/pull/5002](https://togithub.com/fastify/fastify/pull/5002)
- docs(ecosystem): add fastify-rabbitmq to ecosystem.md by
[@&#8203;Bugs5382](https://togithub.com/Bugs5382) in
[https://github.com/fastify/fastify/pull/5000](https://togithub.com/fastify/fastify/pull/5000)
- docs(ecosystem): add `@fastify/throttle` to core list by
[@&#8203;Fdawgs](https://togithub.com/Fdawgs) in
[https://github.com/fastify/fastify/pull/5004](https://togithub.com/fastify/fastify/pull/5004)
- fix: typos by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in
[https://github.com/fastify/fastify/pull/5006](https://togithub.com/fastify/fastify/pull/5006)
- docs: typo on catch statement inside Postgrator migration example by
[@&#8203;alessandrob88](https://togithub.com/alessandrob88) in
[https://github.com/fastify/fastify/pull/5007](https://togithub.com/fastify/fastify/pull/5007)
- fix: post async regression with empty body by
[@&#8203;mcollina](https://togithub.com/mcollina) in
[https://github.com/fastify/fastify/pull/5008](https://togithub.com/fastify/fastify/pull/5008)

#### New Contributors

- [@&#8203;Bugs5382](https://togithub.com/Bugs5382) made their first
contribution in
[https://github.com/fastify/fastify/pull/5000](https://togithub.com/fastify/fastify/pull/5000)
- [@&#8203;alessandrob88](https://togithub.com/alessandrob88) made their
first contribution in
[https://github.com/fastify/fastify/pull/5007](https://togithub.com/fastify/fastify/pull/5007)

**Full Changelog**:
fastify/fastify@v4.22.0...v4.22.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/tomacheese/telcheck).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi42OC4xIiwidXBkYXRlZEluVmVyIjoiMzYuNjguMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
thedavidprice referenced this pull request in redwoodjs/graphql Sep 8, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [fastify](https://www.fastify.io/)
([source](https://togithub.com/fastify/fastify)) | [`4.22.0` ->
`4.22.2`](https://renovatebot.com/diffs/npm/fastify/4.22.0/4.22.2) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/fastify/4.22.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/fastify/4.22.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/fastify/4.22.0/4.22.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/fastify/4.22.0/4.22.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>fastify/fastify (fastify)</summary>

###
[`v4.22.2`](https://togithub.com/fastify/fastify/releases/tag/v4.22.2)

[Compare
Source](https://togithub.com/fastify/fastify/compare/v4.22.1...v4.22.2)

A spurious file (a test run result) was added to the package, which was
now removed.

###
[`v4.22.1`](https://togithub.com/fastify/fastify/releases/tag/v4.22.1)

[Compare
Source](https://togithub.com/fastify/fastify/compare/v4.22.0...v4.22.1)

#### What's Changed

- chore: Bump the dev-dependencies group with 1 update by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/fastify/fastify/pull/5002](https://togithub.com/fastify/fastify/pull/5002)
- docs(ecosystem): add fastify-rabbitmq to ecosystem.md by
[@&#8203;Bugs5382](https://togithub.com/Bugs5382) in
[https://github.com/fastify/fastify/pull/5000](https://togithub.com/fastify/fastify/pull/5000)
- docs(ecosystem): add `@fastify/throttle` to core list by
[@&#8203;Fdawgs](https://togithub.com/Fdawgs) in
[https://github.com/fastify/fastify/pull/5004](https://togithub.com/fastify/fastify/pull/5004)
- fix: typos by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in
[https://github.com/fastify/fastify/pull/5006](https://togithub.com/fastify/fastify/pull/5006)
- docs: typo on catch statement inside Postgrator migration example by
[@&#8203;alessandrob88](https://togithub.com/alessandrob88) in
[https://github.com/fastify/fastify/pull/5007](https://togithub.com/fastify/fastify/pull/5007)
- fix: post async regression with empty body by
[@&#8203;mcollina](https://togithub.com/mcollina) in
[https://github.com/fastify/fastify/pull/5008](https://togithub.com/fastify/fastify/pull/5008)

#### New Contributors

- [@&#8203;Bugs5382](https://togithub.com/Bugs5382) made their first
contribution in
[https://github.com/fastify/fastify/pull/5000](https://togithub.com/fastify/fastify/pull/5000)
- [@&#8203;alessandrob88](https://togithub.com/alessandrob88) made their
first contribution in
[https://github.com/fastify/fastify/pull/5007](https://togithub.com/fastify/fastify/pull/5007)

**Full Changelog**:
fastify/fastify@v4.22.0...v4.22.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/redwoodjs/redwood).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi42OC4xIiwidXBkYXRlZEluVmVyIjoiMzYuNjguMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: David Price <thedavid@thedavidprice.com>
jtoar referenced this pull request in redwoodjs/graphql Sep 13, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [fastify](https://www.fastify.io/)
([source](https://togithub.com/fastify/fastify)) | [`4.22.0` ->
`4.22.2`](https://renovatebot.com/diffs/npm/fastify/4.22.0/4.22.2) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/fastify/4.22.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/fastify/4.22.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/fastify/4.22.0/4.22.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/fastify/4.22.0/4.22.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>fastify/fastify (fastify)</summary>

###
[`v4.22.2`](https://togithub.com/fastify/fastify/releases/tag/v4.22.2)

[Compare
Source](https://togithub.com/fastify/fastify/compare/v4.22.1...v4.22.2)

A spurious file (a test run result) was added to the package, which was
now removed.

###
[`v4.22.1`](https://togithub.com/fastify/fastify/releases/tag/v4.22.1)

[Compare
Source](https://togithub.com/fastify/fastify/compare/v4.22.0...v4.22.1)

#### What's Changed

- chore: Bump the dev-dependencies group with 1 update by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/fastify/fastify/pull/5002](https://togithub.com/fastify/fastify/pull/5002)
- docs(ecosystem): add fastify-rabbitmq to ecosystem.md by
[@&#8203;Bugs5382](https://togithub.com/Bugs5382) in
[https://github.com/fastify/fastify/pull/5000](https://togithub.com/fastify/fastify/pull/5000)
- docs(ecosystem): add `@fastify/throttle` to core list by
[@&#8203;Fdawgs](https://togithub.com/Fdawgs) in
[https://github.com/fastify/fastify/pull/5004](https://togithub.com/fastify/fastify/pull/5004)
- fix: typos by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in
[https://github.com/fastify/fastify/pull/5006](https://togithub.com/fastify/fastify/pull/5006)
- docs: typo on catch statement inside Postgrator migration example by
[@&#8203;alessandrob88](https://togithub.com/alessandrob88) in
[https://github.com/fastify/fastify/pull/5007](https://togithub.com/fastify/fastify/pull/5007)
- fix: post async regression with empty body by
[@&#8203;mcollina](https://togithub.com/mcollina) in
[https://github.com/fastify/fastify/pull/5008](https://togithub.com/fastify/fastify/pull/5008)

#### New Contributors

- [@&#8203;Bugs5382](https://togithub.com/Bugs5382) made their first
contribution in
[https://github.com/fastify/fastify/pull/5000](https://togithub.com/fastify/fastify/pull/5000)
- [@&#8203;alessandrob88](https://togithub.com/alessandrob88) made their
first contribution in
[https://github.com/fastify/fastify/pull/5007](https://togithub.com/fastify/fastify/pull/5007)

**Full Changelog**:
fastify/fastify@v4.22.0...v4.22.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/redwoodjs/redwood).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi42OC4xIiwidXBkYXRlZEluVmVyIjoiMzYuNjguMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: David Price <thedavid@thedavidprice.com>
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants