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 missing as_ref that caused boxed endpoints to enter an infinite loop #711

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

mendelt
Copy link
Contributor

@mendelt mendelt commented Oct 1, 2020

This pr fixes the Endpoint implementation for boxed endpoints. And adds a test for this fix.

In the previous implementation the call method for the boxed endpoint just called itself and not the call method of the endpoint inside the box. This caused an infinite loop.

… loop

I also added a test for this that shows it now works.
thanks to Hasali19 for noticing this
@yoshuawuyts yoshuawuyts merged commit 0fa330f into http-rs:main Oct 1, 2020
@mendelt mendelt deleted the fix_boxed_endpoint branch October 1, 2020 20:37
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