Skip to content

chunked disconnect now throws InvalidChunkHeaders#578

Open
goertzenator wants to merge 3 commits into
snoyberg:mainfrom
goertzenator:fixChunkedDisconnect
Open

chunked disconnect now throws InvalidChunkHeaders#578
goertzenator wants to merge 3 commits into
snoyberg:mainfrom
goertzenator:fixChunkedDisconnect

Conversation

@goertzenator
Copy link
Copy Markdown

Fixes 11 year old issue #168

We observed a IncompleteHeaders exception after connecting to a streaming endpoint for an hour with a server initiated disconnect. That is rather misleading, so this PR changes that to InvalidChunkHeaders.

The readline functions and call sites were also improved.

All tests pass.

@goertzenator
Copy link
Copy Markdown
Author

Some tests from conduit failing. Standby...

@goertzenator
Copy link
Copy Markdown
Author

I think this PR is in good shape now. Some CI tests are failing, but it looks like dependency rot (correct me if I'm wrong) which has nothing to do with this PR.

@sol
Copy link
Copy Markdown
Collaborator

sol commented Jun 7, 2026

@goertzenator sorry for the delay, I'll try to get to this eventually.

- Fixes issue snoyberg#168
- Was previously throwing `IncompleteHeaders` which is confusing and misleading.
-  Untangles readLine functions and call sites.
@sol sol force-pushed the fixChunkedDisconnect branch from e8795bb to cefb5eb Compare June 7, 2026 15:29
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.

2 participants