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(server): Consume all upstream responses #680

Merged
merged 2 commits into from
Jul 28, 2020

Conversation

jan-auer
Copy link
Member

@jan-auer jan-auer commented Jul 28, 2020

Relays do not reuse connections for store requests. The default response transformer for upstream requests does not consume the response payload, which is a potential cause for this.

cc @RaduW for #678

@jan-auer jan-auer requested review from tonyo and a team July 28, 2020 09:31
@jan-auer jan-auer self-assigned this Jul 28, 2020
Ok(Response::Future(Box::new(
consume_request.map(|_| resp).map_err(Error::from),
)))
Ok(Response::Future(Box::new(future)))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is unrelated, just changed to have similar code style.

Copy link
Member

@untitaker untitaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how is this so buggy...

Copy link
Contributor

@tonyo tonyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work 🎉

@jan-auer jan-auer merged commit eba6e4b into master Jul 28, 2020
@jan-auer jan-auer deleted the fix/consume-upstream-response branch July 28, 2020 10:04
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.

3 participants