Skip to content

fix(server): Consume request payloads - #349

Merged
jan-auer merged 6 commits into
masterfrom
fix/always-consume
Dec 4, 2019
Merged

fix(server): Consume request payloads#349
jan-auer merged 6 commits into
masterfrom
fix/always-consume

Conversation

@jan-auer

@jan-auer jan-auer commented Dec 4, 2019

Copy link
Copy Markdown
Member

Our body implementations move the payload out of the HttpRequest object. Therefore, the ReadRequestMiddleware can no longer exhaust the stream once we've started to consume it in our endpoints.

To avoid broken keep-alive connections, Relay will now fully consume all started streams, or avoid to take the payload in the first place. This currently happens in three places: ForwardBody, StoreBody and MultipartEnvelope.

@jan-auer
jan-auer requested review from RaduW and untitaker December 4, 2019 10:27
@jan-auer jan-auer self-assigned this Dec 4, 2019
@jan-auer
jan-auer merged commit e9b17bc into master Dec 4, 2019
@jan-auer
jan-auer deleted the fix/always-consume branch December 4, 2019 11:01
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