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(http): stackoverflow in Conn::ready #923

Merged
merged 1 commit into from
Oct 7, 2016

Conversation

jwilm
Copy link
Contributor

@jwilm jwilm commented Oct 7, 2016

I've had a couple of instances during stress testing now where
Conn::ready would overflow its stack due to recursing on itself. This
moves subsequent calls to ready() into a loop outside the function.

Conn::ready() takes mut self so the loop needs to do an ownership dance to keep trying. Would love to hear a better way to achieve this.

I've had a couple of instances during stress testing now where
Conn::ready would overflow its stack due to recursing on itself. This
moves subsequent calls to ready() into a loop outside the function.
@seanmonstar seanmonstar merged commit 588ef9d into hyperium:master Oct 7, 2016
@jwilm jwilm deleted the fix-stack-overflow branch October 7, 2016 01:43
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