question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove/disable manual response chunking

See original GitHub issue

If the application specifies a Transfer-Encoding: chunked response header then kestrel takes that as a signal that the app has implemented its own chunking and so the server should not auto-chunk. It’s not clear that this feature has ever been used as intended, but it does keep breaking apps that are forwarding responses from HttpClient.

Example: https://github.com/microsoft/reverse-proxy/blob/b2482f606a7dbcbc9b9797b04aed51138da0bd8d/src/ReverseProxy/Service/Proxy/HttpProxy.cs#L589-L594

Proposal: Disable and or remove this feature. Consider adding an option or quirk to re-enable it just in case anybody was using it.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Tratchercommented, Jul 31, 2020

Triage: We initially thought this was a Kestrel specific behavior that was both inconsistent and annoying. However, we’ve now realized that it’s implemented consistently across IIS, HttpSys, and Kestrel, and the IIS behavior is out of our control. While it remains annoying, we’ve decided to leave it here because at least it’s consistent.

0reactions
Tratchercommented, Jul 25, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Node JavaScript disable Transfer-Encoding Chunked
I have an app which sends HTTP responses as chunked. The chunking itself is done before the HTTP response and is sent as...
Read more >
Untitled
Remove/disable manual response chunking #24186 WebMar 13, 2023 · To download chunked messages from an endpoint over HTTP, the endpoint must support partial ......
Read more >
Change log for 4.11.43 - OpenShift Mirror
... fix: armclient panic when response is nil #1235 ... BUG 2075459: IOPS was not being set even when manually configured #5925 ...
Read more >
LS-SCTP: a bandwidth aggregation technique for stream ...
Under normal conditions, all data chunks are sent on the primary path chosen by the SCTP user during the transport connection initiation.
Read more >
VMware Cloud Director API Programming Guide for ...
The server creates Link elements in a response body. ... you manually import a VM as a vApp, but it is simplified in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found