-
Notifications
You must be signed in to change notification settings - Fork 168
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
Timeout not always respected #700
Comments
It seems to have something to do with chunked transfer encoding, as the following fixes it -let result = req.send(string.as_bytes());
+let result = req.send_bytes(string.as_bytes()); |
Can you wireshark what's going on the wire here? |
I was able to reproduce it with "Content-Length" too, but it was a bit trickier. I have some "dirty fixes" for it on the following branch https://github.com/johan-bjareholt/ureq/commits/super-main/, once #688 is fixed I will try to clean them up and submit some PR:s. |
#688 is in. Let's see it! :) |
I have an application where the request times out way too late. I've also seen cases where the request succeeds, but it does so way past the timeout specified, but I have not yet been able to reproduce that with a minimal example.
In the example below, I make a request with a timeout of 2 seconds, but the request doesn't time out until after 4.7 seconds.
client
server
Client output
The text was updated successfully, but these errors were encountered: