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

Response::body_bytes does not timeout properly #359

Open
riveroon opened this issue Jul 16, 2023 · 0 comments
Open

Response::body_bytes does not timeout properly #359

riveroon opened this issue Jul 16, 2023 · 0 comments

Comments

@riveroon
Copy link

riveroon commented Jul 16, 2023

Awaiting on Response::body_bytes may not return properly, even when timeout is set with set_timeout.

Relevant log file

This log was generated from https://github.com/riveroon/twitch-archive/tree/debug_hls with a custom future which logs every poll() requests.
The main, media, client, and body in the logs are here, here, here and here, respectively.
(I know this seems stupid - but I wanted to know if body_bytes was blocking inside a call, or simply not calling Waker.)

Enabled features are: surf = { version = "2", default_features = false, features = ["h1-client-rustls", "encoding"] }

@riveroon riveroon changed the title Response::body_bytes may never return Poll::Ready(..) Response::body_bytes does not timeout properly Sep 1, 2023
@riveroon riveroon changed the title Response::body_bytes does not timeout properly `Response::body_bytes’ does not timeout properly Sep 1, 2023
@riveroon riveroon changed the title `Response::body_bytes’ does not timeout properly Response::body_bytes does not timeout properly Sep 1, 2023
@riveroon riveroon changed the title Response::body_bytes does not timeout properly Response::body_bytes does not timeout properly Sep 1, 2023
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

No branches or pull requests

1 participant