Closed nagisa closed 3 years ago
Thanks for using this client and for posting here. I loved the article, for the most part, and it reminded me about the painful truth that decent software is incredibly hard to produce, even though Rust gives us a chance to accomplish this.
Even though this crate doesn't make it obvious how to deal with timeouts, the consumer has full control over the the client used. Thus I wonder if setting the read timeout would be sufficient for your case?
You’re right, I missed this entirely. While it is a larger hammer than I would like, its definitely good enough for now.
We have been using pubsub1 and starting today I've seen some serious issues stemming from undelying I/O. I find my application sitting in the following stack trace pretty much indefinitely:
which seems to suggest that there has been some change in how google handles responses (for the worse) and it is effectively DoSing me. I would have just gone ahead and set some timeout, but this library doesn't appear to expose that functionality!
FWIW noting the sad results from https://medium.com/@shnatsel/smoke-testing-rust-http-clients-b8f2ee5db4e6 the sensible solution might be having these libraries not make the choice for http library at all and just generate
Request
s which people would then use with whatever version of whatever library they want?