-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Specify timeout for client requests? #417
Comments
Could be related to #368 |
Yep, the removal of timeouts from std means we don't have an easy way to do this. cc #315 @jimmycuadra as for debugging, you could set up a logger (such as env_logger, or log4rs). With env_logger, you could use |
@jimmycuadra Did you ever figure this out? And/or was this related to integration testing with Rusoto? I'm seeing the same behavior there. |
I believe I came across this when working on either rust-fleet or rust-etcd, and eventually figured out what was wrong with my connection settings using the logger. |
A few times while integration testing a library I'm building with Hyper, the test runner has hung infinitely due to what I assume is an HTTP request that's never timing out. Is it possible to specify a timeout for a request? Should the default be infinite, as it seems to be?
IIRC there isn't an implementation of network timeouts in std, which might explain the current behavior. Any tips on debugging a request that hangs to figure out what it's doing?
The text was updated successfully, but these errors were encountered: