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

fix parsing continuation frames in websocket #3247

Merged
merged 1 commit into from May 12, 2024

Conversation

KhafraDev
Copy link
Member

Fixes a bug I discovered when testing continuation frames, but this is more of a general refactor.

The old way didn't work at all and sucked pretty hard.

@KhafraDev KhafraDev merged commit 38c8b55 into nodejs:main May 12, 2024
30 checks passed
@KhafraDev KhafraDev deleted the fix-continuation-frame-parsing branch May 12, 2024 05:01
@KhafraDev
Copy link
Member Author

thank you for the quick review!

@github-actions github-actions bot mentioned this pull request May 17, 2024
kodiakhq bot pushed a commit to X-oss-byte/Canary-nextjs that referenced this pull request May 25, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

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

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

---

### Release Notes

<details>
<summary>nodejs/undici (undici)</summary>

### [`v6.18.1`](https://togithub.com/nodejs/undici/releases/tag/v6.18.1)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.18.0...v6.18.1)

#### What's Changed

-   docs: Update references to dispatcher in docs by [@&#8203;haikyuu](https://togithub.com/haikyuu) in [nodejs/undici#3281
-   fix: compatibility for global headers by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3286
-   websocket: pre-calculated length by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3284
-   ci: fix autobahn workflow by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3291
-   revert: "websocket: pre-calculated length" by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3290
-   websocket: use FixedQueue instead of Set by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3283

#### New Contributors

-   [@&#8203;haikyuu](https://togithub.com/haikyuu) made their first contribution in [nodejs/undici#3281

**Full Changelog**: nodejs/undici@v6.18.0...v6.18.1

### [`v6.18.0`](https://togithub.com/nodejs/undici/releases/tag/v6.18.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.17.0...v6.18.0)

#### What's Changed

-   permessage-deflate decompression support in websocket by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3263
-   fix: Fix server closing in tests. by [@&#8203;ShogunPanda](https://togithub.com/ShogunPanda) in [nodejs/undici#3279

**Full Changelog**: nodejs/undici@v6.17.0...v6.18.0

### [`v6.17.0`](https://togithub.com/nodejs/undici/releases/tag/v6.17.0)

[Compare Source](https://togithub.com/nodejs/undici/compare/v6.16.1...v6.17.0)

#### What's Changed

-   fetch: fix captureStackTrace by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3227
-   fetch: fix wpt test request-upload.any.js by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3234
-   websocket: don't clone buffer by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3240
-   Remove unecessary async from writeBuffer by [@&#8203;DarkGL](https://togithub.com/DarkGL) in [nodejs/undici#3245
-   refactor websocket control frame handling by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3241
-   fix parsing continuation frames in websocket by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3247
-   ci: node nightly test should use node 23 by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3248
-   Add test to verify if the connection is correctly aborted on cancel by [@&#8203;mcollina](https://togithub.com/mcollina) in [nodejs/undici#3219
-   Autobahn suite by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3251
-   websocket: fix 6 autobahn tests by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3254
-   websocket: checkout correct commit in autobahn workflow by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3258
-   Cleanup websocket by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3257
-   websocket: autobahn workflow should fail on error by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3259
-   add bodymixin bytes by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3262
-   perf: avoid buffer cloning by [@&#8203;tsctx](https://togithub.com/tsctx) in [nodejs/undici#3264
-   feat: dump interceptor by [@&#8203;metcoder95](https://togithub.com/metcoder95) in [nodejs/undici#3118
-   use private properties in Headers by [@&#8203;KhafraDev](https://togithub.com/KhafraDev) in [nodejs/undici#3269
-   Revert "websocket: autobahn workflow should fail on error" by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in [nodejs/undici#3270
-   build(deps): bump node from `487dc5d` to `9e8f45f` in /build by [@&#8203;dependabot](https://togithub.com/dependabot) in [nodejs/undici#3271

#### New Contributors

-   [@&#8203;DarkGL](https://togithub.com/DarkGL) made their first contribution in [nodejs/undici#3245

**Full Changelog**: nodejs/undici@v6.16.1...v6.17.0

</details>

---

### Configuration

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

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **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.

---

 - [ ] 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/X-oss-byte/Canary-nextjs).
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

Successfully merging this pull request may close these issues.

None yet

2 participants