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

Broken pipe when making HTTP/2 requests #1283

Closed
rastertail opened this issue Aug 7, 2017 · 4 comments
Closed

Broken pipe when making HTTP/2 requests #1283

rastertail opened this issue Aug 7, 2017 · 4 comments
Labels
A-client Area: client. C-bug Category: bug. Something is wrong. This is bad!

Comments

@rastertail
Copy link

client.get(uri)

works, but

let mut request = Request::new(Method::Get, uri);
client.request(request)

results in a broken pipe.

hyper 0.11.2
hyper-tls 0.1.2
tokio-core 0.1.9

Tested on Windows 10 and Arch Linux.

@seanmonstar
Copy link
Member

I suspect there is something else that is different in your example. client.get literally calls the exact same code you pasted as failing.

@rastertail
Copy link
Author

Mistake on my part - the issue only occurs when calling request.set_version(HttpVersion::H2). I thought I had tested that, but I guess not. The server I am making requests to is HTTP/2 capable.

@seanmonstar
Copy link
Member

Ah OK. hyper currently doesn't support H2. It's being actively worked on,so not too far in the future...

@seanmonstar seanmonstar changed the title Broken pipe when using Request Broken pipe when making HTTP/2 requests Sep 16, 2017
@seanmonstar seanmonstar added A-client Area: client. C-bug Category: bug. Something is wrong. This is bad! labels Sep 16, 2017
@seanmonstar
Copy link
Member

Fixed in 41c4724 (surprised GitHub doesn't seem to auto link it anymore, even though it auto closed it?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-client Area: client. C-bug Category: bug. Something is wrong. This is bad!
Projects
None yet
Development

No branches or pull requests

2 participants