hyper fails on certain URLs? #2733
-
I have been trying to retrieve some files with hyper but for some reason they seem to hang and fail, but the same request with curl or actix-web work just fine. This seems to be a failure at the hyper level, but I am not sure how to debug the inner workings of hyper, but maybe someone can enlighten me? As a demonstration, one of the URLs that fail only on hyper is: The code I'm using is as simple as: use hyper_tls::HttpsConnector;
use hyper::Client;
use hyper::Uri;
...
let https = HttpsConnector::new();
let client = Client::builder().build::<_, hyper::Body>(https);
let response = client.get(Uri::from_str(url.as_str())?).await?; and the program fails with:
Again, curl and actix-web work just fine. For now, I've switched to actix-web, but I would much prefer to be based on hyper. Please let me know if you have any suggestions, and if you can point me to ways to debug the issue. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Huh, when I try this URL out with hyper/reqwest, it never finishes for me, but curl works fine... I wonder, is hyper somehow missing a "read" notification from epoll? I'll have to add more logging and investigate. |
Beta Was this translation helpful? Give feedback.
Huh, when I try this URL out with hyper/reqwest, it never finishes for me, but curl works fine... I wonder, is hyper somehow missing a "read" notification from epoll? I'll have to add more logging and investigate.