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

Connection leak #1717

Closed
luben opened this issue Nov 19, 2018 · 7 comments
Closed

Connection leak #1717

luben opened this issue Nov 19, 2018 · 7 comments
Labels
A-http1 Area: HTTP/1 specific. C-bug Category: bug. Something is wrong. This is bad!

Comments

@luben
Copy link
Contributor

luben commented Nov 19, 2018

In certain cases I see connection leaks. I have a simple reproduction in: https://github.com/luben/repro-hyper

The behavior I observe:

@seanmonstar
Copy link
Member

Thanks, I'll try out the repro locally.

Do you have any more details that would help me while I look? Is it consistently leaking the connection immediately, or only occassionally?

@luben
Copy link
Contributor Author

luben commented Nov 19, 2018

It's consistently leaking with payloads of 1 MB. I have only tried and reproduced in on Linux.

@luben
Copy link
Contributor Author

luben commented Nov 20, 2018

I have just added a negative example with src/bin/worker-non-stream.rs - if we .concat2() the body (i.e. not stream it back) there is no leak.

@seanmonstar
Copy link
Member

Is the leak in broker, or in worker?

@luben
Copy link
Contributor Author

luben commented Nov 20, 2018

The connection between the worker and the broker is not closed from both sides - verified with lsof.

@seanmonstar seanmonstar added C-bug Category: bug. Something is wrong. This is bad! A-http1 Area: HTTP/1 specific. labels Nov 21, 2018
@seanmonstar
Copy link
Member

I see, it seems the dispatcher after having written the headers for some reason doesn't continue to do work, but stalls. I'll look more into it.

@seanmonstar
Copy link
Member

I've published v0.12.16 with a fix for this, thanks for reporting and for the reproducible instructions!

luben added a commit to luben/repro-hyper that referenced this issue Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-http1 Area: HTTP/1 specific. C-bug Category: bug. Something is wrong. This is bad!
Projects
None yet
Development

No branches or pull requests

2 participants