Skip to content

fix: initialize Multibuf Response Writer before Reader #251

Merged
ldez merged 3 commits intovulcand:masterfrom
dandeandean:encoding-size-500s
Apr 18, 2026
Merged

fix: initialize Multibuf Response Writer before Reader #251
ldez merged 3 commits intovulcand:masterfrom
dandeandean:encoding-size-500s

Conversation

@dandeandean
Copy link
Copy Markdown
Contributor

@dandeandean dandeandean commented Feb 26, 2026

This will resolve #240 and as such, I've added @vincentob's test case.

The multibuf library appears to keep their own internal state of the Writer object. The 500s we were seeing were to to the Writer calling Reader() when it's still in the writerInit state.

We can see that here: Multibuf Buffer We can avoid this by initializing the writer by calling Writer().

They handle the writerInit case in the writer function here

Fixes #240

@dandeandean
Copy link
Copy Markdown
Contributor Author

looking to close traefik/traefik#11568 with this

@dandeandean dandeandean marked this pull request as ready for review February 26, 2026 13:10
@amccague
Copy link
Copy Markdown

amccague commented Apr 2, 2026

@ldez any chance you can review this?

@ldez ldez force-pushed the encoding-size-500s branch from cbc65e6 to 09d0ac9 Compare April 12, 2026 21:58
@ldez ldez added the bug label Apr 13, 2026
@ldez ldez changed the title Initialize Multibuf Response Writer before Reader fi: initialize Multibuf Response Writer before Reader Apr 13, 2026
@ldez ldez changed the title fi: initialize Multibuf Response Writer before Reader fix: initialize Multibuf Response Writer before Reader Apr 13, 2026
@ldez ldez merged commit fc435ec into vulcand:master Apr 18, 2026
5 checks passed
vliska pushed a commit to vliska/oxy that referenced this pull request Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Empty body with chunked encoding will return 500 Internal server error

3 participants